0
C++ header file
what will header file for this error const char*
37 ответов
+ 8
There is a list of formats you can use with printf here
http://www.cplusplus.com/reference/cstdio/printf/
+ 8
the " that was used was odd. it looked like an accent not a quotation.
the error on line 5 looks like it is from the blank include
+ 8
see the code in either James or my link (Blah or butItWorks) compare them to yours. Look for differences. Every character is important
+ 7
😯 yours was good too. printf is c more than c++ (cout) so technically yours is better
+ 7
I havent used it all that often. can it be used in conjunction with ios formatting? (width, left, right etc)
+ 6
maybe your " " I have updated the code to the printf version for your viewing pleasure.
Note: Missing elements.
<cstdio>,
using namespace std,
a ;
the wrong quotation marks inside printf
and the variable z in printf
+ 6
i really must start a c course soon. 😉
+ 6
hehehe I can't hear that word without thinking Borg.
+ 3
ok
+ 2
thanks jay
+ 2
thanks james
+ 1
I am coding for simple adding of two numbers and when I started to run the program I am getting error that is const char*
+ 1
then what will I do for correction in this error const char*
+ 1
no, how to link the code
+ 1
I am using only int not char
+ 1
will you get a pic. by me for this error
+ 1
ya ok
+ 1
#include
int main()
{
int x = 2;
int y = 4;
int z = x + y;
printf(“%ld the sum of z and y is z”)
}
+ 1
what will do a output of sum of x and y