![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Dec 2005
Posts: 3
Rep Power: 0
![]() |
...thx again...now (+ #include <iostream>) it works...but with g++ instead of gcc...
|
|
|
|
|
|
#12 |
|
Newbie
Join Date: Dec 2005
Posts: 12
Rep Power: 0
![]() |
you might need a "return 0;" for gcc since your main returns an integer
|
|
|
|
|
|
#13 |
|
Expert Programmer
|
Bah, it doesn't beep for me >:-(.
No fair.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#14 | |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4
![]() |
Quote:
![]()
__________________
Learning to use C++ and loving every minute of it. |
|
|
|
|
|
|
#15 | |
|
Programmer
Join Date: Dec 2005
Posts: 53
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#16 | |
|
Expert Programmer
|
Quote:
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: Jul 2005
Posts: 158
Rep Power: 0
![]() |
Using this info I wrote the worlds most annoying program. A good question though. Could useful handeling errors. Would that beep work in windows if not is there a windows equivalent.
My very annoying program. #include <iostream>
using namespace std;
int main()
{
int count=0;
while (count!=100)
{
cout << "\a";
cout << "hello" << endl;
count++;
}
return 0;
}Thanks in advance for any info.
__________________
Geeks may not be cool now but in the long run they prosper. |
|
|
|
|
|
#18 |
|
Programmer
Join Date: Nov 2005
Location: Belfast
Posts: 35
Rep Power: 0
![]() |
It wasnt really for any specific thing other than to know how, tho i have made a tiny program so that when the user opens it, the program beeps for about.....an hour? lol
Gonna test it on a mate in school(hehe) P.S. What site could i learn more about things like \n, \a, etc? NOT for pranks, just for more knowledge. |
|
|
|
|
|
#19 | ||
|
Programmer
Join Date: Dec 2005
Posts: 53
Rep Power: 3
![]() |
Quote:
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|