Re: Turbo C/C++ and other junk compilers discussions here
^I'm using Dev C++
^I'm using Dev C++
CFree is not a compiler its an IDEWell how is "Cfree" as a C compiler? (I m new to C; but well acquainted with JAVA).
^^that's why, the code is non-ANSI, which doesn't guarantee it will run in a standard compiler (which Dev-C++ uses).
Can you explain me what do you exactly mean by non-ANSI standards? Using outdated programming styles?
#include<iostream.h>
#include<conio.h>
void main()
{
ulong int first, second, url;
int third, fourth;
clrscr();
cout<<"Please enter the first part \n";
cin>>first;
cout<<"Please enter the second part \n";
cin>>second;
cout<<"Please enter the third part \n";
cin>>third;
cout<<"Please enter the fourth part \n";
cin>>fourth;
cout<<"/n";
url = (16777216*first) + (65536*second) + (third*256) + fourth;
cout<<url;
getch();
}
convert to string n output