sorry,my bad Laharl for forgetting to write "return 0;"
well,I better get my self to learn about strings.
thanks Laharl and oler1s as well as to those who read and and gave their reply for your time reading and giving some suggestions to my post.thanks guys...
User Profile
Collapse
-
well,i guess i have no choice but to manually assign them one by one...
but,is there also another way of writing the code like this...
...Code:int main() { int num[3],i; cout<<"enter 3 numbers:\n"; for (i=0;i<3;i++) { cout<<"num["<<i<<"]="; cin>>num[i]; }Leave a comment:
-
Beginner's Assignment
can anyone help me in making char array?
for example if i declared:
char names[20];
and for example i want to enter 3 names (example joe, sarah, and arthur)
for that array and then display those names...how will i write it as a syntax or any declarations that i missed?...sorry for being a newbie,but answering my question will be a great help for my school assignment..
im expecting...
No activity results to display
Show More
Leave a comment: