Need help with C++

closed account (zb0S216C)
http://www.cplusplus.com/doc/tutorial/classes/

Go nuts.

Wazzak
Please, write me a simple programm!
1
2
3
4
5
6
7
8
9
class eggs
{
  int x;
};

int main()
{
  eggs a; // creates an instance of the class eggs
}
Ehh, write a more difficult program, around 30 lines!
there are tons available on the internet... look around...
I can't find!!!
closed account (zb0S216C)
aplapl wrote:
"Ehh, write a more difficult program, around 30 lines!"

Ehh, do it yourself.

Wazzak
Last edited on
I haven't any time!
Ehh, find some time, around 30 mins.
You've already wasted an hour here. You could have done it yourself by now.
1
2
3
4
5
6
7
8
9
class bummer {
public:
	bummer(const bummer &) {};
};

int main()
{
	bummer b(b);
}

Last edited on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<iostream>

using namespace std;

class name
{
  public:
  void learncplusplus();



};
void name::learncplusplus()
{
    cout<<"learn man about classes,and dont wait from the forum.";
}


int main()
{
name n;
n.learncplusplus();

}


think that i helped.
Thanks!
Topic archived. No new replies allowed.