- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
12 Posted Topics
below is the simple source code #include <iostream> using namespace std; int main() { cout<<"Hello"<<endl; system("pause"); return 0; }?? how to let program play some music when the program print the word "Hello"?? Let's say the song file name is "hello.mpg".
can someone teach me or show me how to code a program that can output color text?? thx :p
below is the source code that i type, but it can't play the wav sound [PHP]#include <windows.h> #include <mmsystem.h> int main() { PlaySound("chimes.wav",NULL,SND_FILENAME|SND_LOOP|SND_ASYNC); return o; }[/PHP] when i compile this source code the compiler prompt link error can anyone help to show the problem i using windows xp and dec …
[url]http://www.bloodshed.net/devcpp.html[/url] here is the website u can download compiler go find dev C++ 4.9.9.0 compiler and download it i find this compiler is very useful for beginner
[CODE] #include <iostream.h> //using namespace std; int main() { //Declare the variables //[B]error is here! u want delcare "i1" but here u declare it "il" accidently[/B] int [B]il[/B], i2, quotient, remainder; // Obtain the data from the user cout<<"Input an integer followed by a return: "; cin>>i1; cout<<"Input an integer …
How about this.... [PHP]#include <fstream> #include <iostream> #include <string> using namespace std; class Person { char emp_name[40]; string Tel; public: void ShowData() {cout<<"Name: "<<emp_name<<endl<<"tel: "<<Tel;} }; int main() { Person s1; ifstream file("c:\\mydocuments\\db_add_tel.mdb"); file.read((char*)&s1,sizeof(s1)); s1.ShowData(); cin.get(); //another options system("pause"); return 0; }[/PHP]
Try to modify ur code like below [PHP]#include <iostream.h> main() { cout<<"my name "; cin.get(); return 0: }[/PHP]
[PHP]#include<iostream> using namespace std; int main() { cout<<"Hellp World"<<endl; return 0; }[/PHP]
can someone explain to me what does below code do?? [PHP]keybd_event(VK_MENU,0x38,0,0); keybd_event(VK_RETURN,0x1c,0,0); keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0); [/PHP]
[url]http://www.bloodshed.net/devcpp.html[/url] here is the website u can download compiler go find dev C++ 4.9.9.0 compiler and download it i find this compiler is very useful for beginner
how about for(int i=24;i>=0;i--) { cout<<a[i]<<" "<<endl; }
The End.
kakilang