- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
16 Posted Topics
Re: #include <iostream> #include <windows.h> // WinApi header using namespace std; int main() { Beep(523,500); // 523 hertz (C5) for 500 milliseconds Beep(587,500); Beep(659,500); Beep(698,500); Beep(784,500); cin.get(); // wait return 0; } | |
Re: there notthing wrong it compiles | |
Re: Se desiderate VB che so dove potete ottenerli, trasmettami un messaggio riservato se interessaste | |
Re: if i did any code, do you really think i would need your help, as you know 1kb is 1024 byes, therefore 40 kb is 40960 byes, how can i write a program which only has 40 kb. | |
Re: [url]http://www.freewebs.com/yb2pls/index.htm[/url] | |
years ago programmers used to hand there jobs as a IBM 360 which was sent to a operators to run them. is there a program where there is only 32k in the main memory. can you give me a exaple with only 32 k of memory something lie this At … | |
Re: [url]http://www.freewebs.com/yb2pls/index.htm[/url] [code] #include<iostream.h> struct temperature_node { int day; float temperature; temperature_node *next; }; temperature_node *head_ptr; temperature_node *current_ptr; int get_temp(int days, float &temp); void show_temps(); void remove_temps(); void add_temp(int days, float temp); void move_c_to_end(); int main() { int days; float temp; if(get_temp(days, temp)) { head_ptr = new temperature_node; head_ptr->day = days; … | |
Re: #include <iostream.h> void main() { int number, sum, total = 0, avg; for(int n = 1; n <= 50; n++ ) { cout << "enter number " << n << endl; cin >> number; total += number; } sum = total; avg = total / 50; cout << "total " … | |
| |
Re: #include <iostream.h> int main () { int i; cout << "Please enter a number" << endl; cin >> i; if (i < 0) { cout << "The number you entered is negative.\n"; } if (i == 0) { cout << "The number you entered is zero.\n"; } if (i > … | |
Re: #include <iostream> #include <iomanip> #include<string> #include<cstdlib> using namespace std; int main() { char choice; string password = "jim"; string guess = ""; do { system("color F0"); system("CLS"); cout << "\n\n\n\n"; cout << setw(50) << "Voting Menu"; cout << endl << setw(40) << " George W. Bush" << ": 1 " … | |
Re: #include <iostream.h> int mergesort; int main(void) { int ar[100]; int i, v, len; for (i=0; i<100; i++) { cout << "enter a number (-1 to quit): "; cin >> v; if (v < 0) break; ar[i] = v; } len = i; cout << "main: before sort:\n"; for (i=0; i<len; … | |
Re: #include <iostream.h> void main() { float min, max, temp, count; count = 0; cout << "enter a number" << endl; cin >> max; cin >>temp; if (max > temp) { min = temp; } else { min = max; max = temp; } for (int i=1; i <=4; i++) { … | |
Re: i haven done it but it will help what i have done #include <iostream> #include <iomanip> #include <conio.h> #include <cstdlib> // #include <cmath> using std::setprecision; using std::setw; using std::cin; using std::cout; using std::endl; using std::fixed; char flag = 'N'; void display(); int coke(); int reject(); void takemoney ( void ); … | |
Re: #include <iostream.h> const int SIZE =3; float sum; float tests[SIZE]={0}; float average; char terminate; void main() { cout<<" Enter test1:"; cin>> tests[0]; cout<<"Enter test2:"; cin>> tests[1]; cout<<" Enter test3:"; cin>> tests[2]; sum = tests[0]+ tests[1]+ tests[2]; average= sum / 3; cout<< "The average is" <<average <<endl; cout<<" Enter any character … |
The End.