imported_dheeraj_kumar
Journeyman
maverick, i posted a topic in
*www.thinkdigit.com/forum/viewtopic.php?t=33900
care to reply?
*www.thinkdigit.com/forum/viewtopic.php?t=33900
care to reply?
Gurpreet Kaur said:...it gives the message
"Happy Birthday Raj" in a lot of windows??
...
sumit_ind said:guys i want to know what are files in c and what is their use in c ?
If u r using C++ in the dos version ie Turbo C++ 3.0 or before then u can not do it as DOS dosent supoort windows ..HOwever if u want a repeated statement like output use a for loopGurpreet Kaur said:...it gives the message
"Happy Birthday Raj" in a lot of windows??
...
void main()
{
char name[10];
cout<<"Enter your name : ";
getlinen(name);
for( int i =0 ;i!=\0;i++)
cout<<"HAppy Birthday<<name<<"\n";
}
Maverick340 said:..HOwever if u want a repeated statement like output use a for loop
Code:void main() { char name; cout<<"Enter your name : "; cin>>name; for( int i =0 ;i<10;i++) cout<<"HAppy Birthday<<name<<"\n"; }
Maverick340 said:If u r using C++ in the dos version ie Turbo C++ 3.0 or before then u can not do it as DOS dosent supoort windows ..HOwever if u want a repeated statement like output use a for loopGurpreet Kaur said:...it gives the message
"Happy Birthday Raj" in a lot of windows??
...
Code:void main() { char name; cout<<"Enter your name : "; cin>>name; for( int i =0 ;i<10;i++) cout<<"HAppy Birthday<<name<<"\n"; }
int the for loop (for(int i=0;i<10;i++))
u can give i<//any number u like..the stament will be printed that many times//
mako_123 said:Guys
Currently i use Turbo c++ ( dos one ) for programming in c++ . Now i want to shift to Dev C++ . Can anyone tell me whether there will be any diff in programming in dev c++ and what are its advantages over turbo c++ .