Questions tagged [statements]

In computer programming a statement is the smallest standalone element of an imperative programming language. A program written in such a language is formed by a sequence of one or more statements. A statement will have internal components (e.g., expressions).

A statement is the smallest standalone element of an imperative programming language. A program written in such a language is formed by a sequence of one or more statements. A statement will have internal components (e.g., expressions).

Resources

458 questions
-4
votes
5 answers

Why is a variable not recognized in an event handler?

I have two issues with this piece of code. I 'm having trouble because the submit button event doesn't recognize the variable calculated in the text box event, and because the text box event isn't recognizing my if statements as statements. You can…
Kerry G
  • 863
  • 4
  • 12
  • 21
-5
votes
2 answers

Error on if statement when using unchecked

if (Catz = unchecked) It shows an error after the ")" at the end of this statement. I have the whole statement written out and it shows no other errors besides asking for another ")". Is there an issue with using unchecked? NOTE: I have a…
-5
votes
1 answer

something wrong with my prepared statement SQL query with PHP

I get the errors: Notice: Undefined variable: db in C:\xampp\htdocs\sqltest.php on line 18 Fatal error: Call to a member function prepare() on a non-object in C:\xampp\htdocs\sqltest.php on line 18 I used the code from this How can I prevent SQL…
PinheadLarry
  • 117
  • 1
  • 7
-6
votes
4 answers

Adding multiplication to a IF Statement

I just have one quick question. How would I introduce multiplication into each of the if statement lines in order to time Height * Width * Depth together to get the volume. Im looking to do this for each line. I have insert a copy of my code and…
-6
votes
1 answer

Range of IF statements in C programming

if (5>=hour && hour<9){ if(minute<7){ printf("%d:00"); return 0;} else if (8<=minute && minute<22){ printf("%d:15",hour); return 0;} else if (22<=minute && minute<37){ printf("%d:30",hour); …
-6
votes
2 answers

Keyword If Statements

What keyword precedes the suite that will be executed if the condition in an if statement is false? This questions is for a homework I am having difficulty with in Python. I have tried to look int he chapters to get the information.
Arsenii
  • 79
  • 1
  • 8
-6
votes
1 answer

Using nested if statements ( Help )

Hi, I would appreciate helping me with this question: A company awards its customers a discount based on their value of purchases and number of children in the family according to the following specifications: • If the value of purchases is $5000…
Julia
  • 3
  • 2
-12
votes
2 answers

What do the following declarations mean?

can anyone briefly explain what the meaning of any of these statements are? 1) const char hi [] { 'H', 'E', 'L', 'L', 'O', '\0' }; 2) ifstream fileObjs [3]; 3) long double bigNums [10000] = { 10000 }; 4) char* strRefs [2000]; 5) int foo(); 6) double…
JS16
  • 5
  • 5
1 2 3
30
31