Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 32
Member Avatar for Max_Payne
Member Avatar for beefstick720
0
134
Member Avatar for Max_Payne

[B][COLOR="red"]Question: [/COLOR][/B] Can i initialize char arrays using preamble initialization ? [B][COLOR="red"]Code:[/COLOR][/B] [code=c++] #prag... #pragma once class Pizza { public: Pizza (const char top[] = "cheese", const int size = 12, const double pr = 8.99) : strcpy_s (_topping ,top), _diameter (size), _price (pr) {} ~Pizza () {} void setValues …

Member Avatar for Narue
0
272
Member Avatar for toko

I have been reading "Sams Teach Yourself C++ in 24 Hours". This is the code that has confused me: [CODE=c++] #include <iostream> class Cat { public: int GetAge(); void SetAge (int age); void Meow(); private: int itsAge; }; int Cat::GetAge() { return itsAge; } void Cat::SetAge(int age) { itsAge = …

Member Avatar for Max_Payne
0
102
Member Avatar for Max_Payne

[B]Point.h[/B] [code=c++] #prag... #pragma once #include <iostream> using namespace std; class Point { private: int x; int y; public: Point(void); Point( int x, int y ); Point( const Point &xPoint ); ~Point(void); void setX( int x ); int getX() const; void setY( int y ); int getY() const; Point & …

Member Avatar for Max_Payne
0
582
Member Avatar for Max_Payne

[b]Menu.h[/b] [code] #pragma once #include <iostream> #include <cstring> using namespace std; class Menu { private: string title; public: Menu( void ); Menu( const Menu &unMenu ); ~Menu( void ); void setTitle ( string title ); string getTitle() const; }; [/code] [b]Menu.cpp[/b] [code] #include "Menu.h" Menu::Menu(void) { this->title = "Hello"; } …

Member Avatar for dubeyprateek
0
214
Member Avatar for Max_Payne

I want to increment the [B]i[/B] without putting the whole statement in a loop. [code=c++] #prag... ostream &operator << ( ostream &output, const Course &xCourse ) { int i = 0; output << " " << i++ << ".| " << xCourse.code << " | " << xCourse.section << " …

Member Avatar for Ancient Dragon
0
88
Member Avatar for Max_Payne

[b]***Header Files:[/b] [b]Point.h[/b] [code=c++] #pragma once #include <iostream> using namespace std; class Point { private: int x; int y; public: Point(void); Point( int x, int y ); Point( const Point &xPoint ); ~Point(void); void setX( int x ); int getX() const; void setY( int y ); int getY() const; Point …

Member Avatar for Max_Payne
0
116
Member Avatar for Max_Payne

[b]Code[/b]: [b]NumeroReal.h[/b] [code] #pragma once #include <iostream> #include <cmath> #include <cstdlib> using namespace std; class NumeroReal { private: double n; public: NumeroReal(); // default constructor NumeroReal( double n ); // parameter constructor NumeroReal( const NumeroReal &unNumeroReal ); // copy constructor ~NumeroReal(); // destructor void setNumeroReal( double n ); double getNumeroReal() …

Member Avatar for Max_Payne
0
121
Member Avatar for Max_Payne

How can i make a string that will allow me to Use Spaces between the words ??? This code only allows me to post words without spaces. [code] cout << " Enter the Name of Employee # " << i+1 << ": "; cin >> N; myClass[i].setName( N ); [/code]

Member Avatar for Max_Payne
0
139
Member Avatar for Max_Payne

I made this Data Table. The problem is when the outputs are different it will change the shape of the Table. I need some tips on how can i fix this problem. [code=cpp] [INDENT]double sum = 0; for ( int j = 0 ; j < 5 ; j++ ) …

Member Avatar for ithelp
0
120