Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

Hi I am using c++ but whem I try to compile a program it gives out............ question1.cpp:15:1: error: ‘b’ does not name a type b = 5;

OpenStudy (e.mccormick):

All variables must be defined before use. Do you have something like `int b;` before that? How about using devine and assign at the same time? `int b = 5;`

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!