Re: Post ur C/C++ Programs Here
Thanx for the example program , I also found such programmes but couldnt find the definition of "1LL"
also i couldnt compile ur example in VC++ 6 give me on that too.
---------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int x;
printf("Enter digits to shift > ");
scanf("%d", &x);
-> printf("%Ld\n",1LL<<x);
printf("%Ld\n",1LL);
exit(0);
return(0);
}
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(11) : error C2059: syntax error : 'bad suffix on number'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(11) : error C2146: syntax error : missing ')' before identifier 'L'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(11) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(12) : error C2059: syntax error : 'bad suffix on number'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(12) : error C2146: syntax error : missing ')' before identifier 'L'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(12) : error C2059: syntax error : ')'
Error executing cl.exe.
Text.obj - 6 error(s), 0 warning(s)
-------------------------------------------------------------------------------------------
please give that also...
Thax
Thanx for the example program , I also found such programmes but couldnt find the definition of "1LL"
also i couldnt compile ur example in VC++ 6 give me on that too.
---------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int x;
printf("Enter digits to shift > ");
scanf("%d", &x);
-> printf("%Ld\n",1LL<<x);
printf("%Ld\n",1LL);
exit(0);
return(0);
}
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(11) : error C2059: syntax error : 'bad suffix on number'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(11) : error C2146: syntax error : missing ')' before identifier 'L'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(11) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(12) : error C2059: syntax error : 'bad suffix on number'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(12) : error C2146: syntax error : missing ')' before identifier 'L'
C:\Program Files\Microsoft Visual Studio\MyProjects\Test\Text.c(12) : error C2059: syntax error : ')'
Error executing cl.exe.
Text.obj - 6 error(s), 0 warning(s)
-------------------------------------------------------------------------------------------
please give that also...
Thax
Last edited: