Is c++ enough to make a tetris style game using a graphics library? Or are there better ways to do it?
Type: Posts; User: makveli
Is c++ enough to make a tetris style game using a graphics library? Or are there better ways to do it?
How do you make a clock that runs in dos(The clocks time the same as the computers time)?
dont worry i found my mistakes
[code]
#include<iostream>
using namespace std;
int main()
{
int e;
cout<<"1.Addition"<<endl;
cout<<"2.Subtraction"<<endl;
cout<<"3.Multiplication"<<endl;
cout<<"4.Long Addition"<<endl;
what would be the whole program code for that?
how do you make dos open a seperate file like ms paint for example
yeh i just got a bit coinfused i know what to do now and thanx for the && idea on how to make variables equal each other
can someone put them in ive been pulling my hair out tryin to figure out where they go to no avail
#include<iostream>
#include<ctime>
using namespace std;
int main()
{
cout<<"Welcome To Charlies Slot machine"<<endl;
cout<<"press 1 to play 2 not to play"<<endl;
int a;
cin>>a;
if (a==1)
thanx that code u posted is very random:D and it is simpler then the code the other guy posted wich returns the same number every time:p
:( its has alot of parse errors it dont work
thanx but could anyone write a simple program using random numbers and show us please;)
lol i aint tryin to be offensive but his last post sais somethin like "dont expect us to do all the work for you, not all of us have a compiler in front of us"
and he was just tryin to get help:p
u dont have a compiler in front of u wat about behind you?
srand(Clock()); there is a problem there it sais "warning in function int"
'clock undeclared'
(each underclared
that code dosent compile
wen people post corrected code thet should compile it to see if it works first:rolleyes:
#include<iostream>
using namespace std;
int main()
{
int a;
a=random;
cout<<a<<endl;
return 0;
}
:confused: i dont understand i have something called opengl on the dev-c++ and that displays graphics
/**************************
* Includes
*
**************************/
#include...
where is the top of the program
#include ect...
int main();
where is that part of it
ok i have a electronic book i downloaded on c++ but he dont explain he should make the code as simple as possible then slowly get harder he starts hard and gets easy
my advice is use the net to learn rather then books
england colledge is free here
i repeat code untill i know it this last week i have been studying it all day actually typing the code urself and changing stuff to see how it works is the best way to learn
where do u live?? college is free in england