#include <stdio.h>
#include <malloc.h>
struct student
{
float score;
};
main()
{
struct student *p;
Type: Posts; User: pacific
#include <stdio.h>
#include <malloc.h>
struct student
{
float score;
};
main()
{
struct student *p;
#include <stdio.h>
main()
{ char buff[4];
strcpy(buff,"aaaa");
printf("%s",buff);
}
why these codes can run without mistake??
#include <stdio.h>
#include <string.h>
int main(int argc,char * argv[])
{int i=3;
char buf[5];
strcpy (buf,"aaaa");
printf("%d\n",i);
return 0;
}
like this ??..
#include <stdio.h>
#include <string.h>
int main(int argc,char * argv[])
{int i;
char buf[4];
strcpy (buf,"aaaa");
printf("%d\n",i);
return 0;
}
Run-Time Check Failure #3-the variable i is...
than you !
if I want you to display like this?
I love you !
sparkingly and moving slowly
do you have the ideas??..
waiting........
just the prorgamme above I
I want to write some others languages vertically
for example
我
好
喜
欢
你
I want to make the character above sparkingly and moving slowly
can you help me ?...
#include <stdio.h>
#include <dos.h>
#include <graphics.h>
#include <math.h>
#define FNX(x) (int)(xo+(x)*1.0)
#define FNY(y) (int)(getmaxy()-(yo+(y)*1.0))
#define FNX2(phi)...
there is something wrong with my pc
why the programme i copied does not stick here??
can you tell me why ?how can i stick my programme here???
waiting...........................
the programme i wirte below!
#include <stdio.h>
thank you !
i run the codes get the same results
can you tell why ???
than you ! uping..........
studying...............
after reading the article on Casting malloc
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047673478&id=1043284351
just like the writer said
Originally, the C language did not enjoy the...
thank ! you !
char *p;
char p=(char *)malloc(sizeof(char));
can you tell me the differences for above two sentences??
i come from hongkong so sorry!
thang you above answers!
i am a primary !
a newer to c++
I only to kown the difference between structs in C and structs in C++.!
i am so sorry for it!!
can you give a struct well defined values by using constructors???
I am a newer to come here
how does constructor work?
what differenvd betwteen the struct on c and c++??
...
sorry ! i make a mistake!
there are so many on it !ican you give me some??
thank you for helping
waiting!! :)
just like you say i think it is not engh space to hold it
you miss the " ;" :p