Category : integer

I am trying to create a sort of record list using two classes. One class is for entering the values while other class is for gathering them, organizing them, and printing them. Here is my code: class enterrecords { public: string name; int age; string birthmonth; enterrecords() { name = ""; age = 0; birthmonth ..

Read more

I am trying to convert a char buffer into multiple int variables. This is what i got so far after a day of trying. ZeroMemory(buf, 4096); int bytesReceived = recv(sock, buf, 4096, 0); if (bytesReceived > 0) { /*for (int i = 0; i < bytesReceived; i++) { cout << hex << (int)buf[i]; }*/ std::stringstream ..

Read more

the following code is for a rectangle assignment. however not certain if my get color was entered correctly. looking to see if someone can help me with this matter. #include <iostream> #include <string> using namespace std; // Function Prototypes double getLength(); double getWidth(); int getColor(); double getArea(double, double); void displayData(double, double, double, string); int main() ..

Read more