Friends point me where I m wrong.
Code:
Command for compilation :
Error message(s):
Code:
Command for compilation :
Error message(s):
#include<fstream>
#include<iostream>
using namespace std;
int main()
{
ofstream f;
f.open("1.txt");
f.put(65);
std::cout<<"Inserted";
f.close();
return 1;
}
using namespace std;
are you programming under linux? if yes, then you can't use <conio.h> under GCC.anantkhaitan said:
well mate , conio.h is a propreitary header file of Borland Inc , you won't find it bundled with ny oher compiler than borland compilers , so it's better you use Standard C++ n not rely on compiler-specific until it's a must ..anantkhaitan said:
Python is a scripting language and is not meant for heavy duty System Software development ,kaustav_geek said:
int main()
{
int i=0;
char a[]="Help Me! ",ch;
do
{
ch=getch();
printf("%c",a[i%9]);
i++;
}while(ch!=27); // 27 means ESC
return 0;
}
while(!kbhit())
{
<code>
}
kaustav_geek said:
>>> s = 'Help me! '
>>> i = 0
>>> while True :
... try :
... c = raw_input()
... except KeyboardInterrupt :
... break
... print s[i % 9],
... i += 1