I was trying to write a code for union and intersection of two sets but i got an error which states clrscr and exit are not declared in scope. I have included the header files but still i get this error. Can some one help me out in this?
Using the code below, printf is at least displaying long double now but the amount is still not correct. As far as the unsigned long long, it is displaying it perfectly, right to its 8 byte (64-bit) limit. (The%llu is correct because if I use%u or%lu, the compiler displays a warning and the output is wrong.) Code. Storage Classes in C. Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the existence of a particular variable during the runtime of a program. C language uses 4 storage classes, namely: auto: This is the default storage class for. Hi, I had a similar problem after updating to g6.2.1. Try looking into your toolchain settings for the g compiler and look for the symbol definitions 'printf=iprintf' and 'scanf=iscanf'. Remove both (only for the C compiler, leave them unchanged for C) and the projects.
When I compile my dos program and execute it, Dev-C minimizes and then restore in a second but nothing appears. When creating a console application, be sure to uncheck “Do not create a console” in Project Options (when working with source files only uncheck “Create for win32” in Compiler Options). Moschops (7244) printf lives in cstdio. Std::cout lives in ostream. You must declare the functions by including appropriate headers. Last edited on Mar 6, 2011 at 10:14am. Mar 6, 2011 at 1:05pm. Codist (39) Just put #include at the top of your code. Last edited on Mar 6, 2011 at 1:53pm. Mar 6, 2011 at 1:20pm.
Post your code.
Jump to PostChange void main()
to int main()
On line 35. if(i<3)
, if i is >=3 then you'll never enter that section of code. I assume that what you want to do is to keep displaying the menu until 3 is chosen. An easy way to do this would …