python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Undeclared Identifier in do while loop, C
#include <stdio.h>
#include <cs50.h>
int main(void)
{
do
{
//ask for input with 1-8
int height = get_int("Height: ");
}
while (height > 0);
}
...
Hashaam Zafar
Votes: 0
Answers: 3
Why is "number" undeclared when I declared it in the function?
#include <stdio.h>
void numberisone()
{
int number = 1;
}
int main()
{
numberisone();
printf("%d", number);
return 0;
}
I'm fairly new to programming so make t...
flyerz
Votes: 0
Answers: 3