No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm having issues with a rather simple program that prints a string. I have two .cpp files, main and login, with login.h header file. The problem at hand is that when I want to print the string in main.cpp that was entered from login.cpp - nothing is shown in which … |
|
Hey everyone, I'm currently writing a simple text based MUD in Java for learning purposes. Currently I'm in the process of coding a Login class that prompts the user to enter a user name and password in order to access the account. Right now the problem lies in opening a … |
|
Hey there, I'm setting up a default program to use as a template for my future DirectX applications. The program compiled fine but I'm getting a run time error in my WinMain() function. Here is the WinMain() function. [code=c++]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmd, int show) { MSG … |
|
Hey everyone, I'm relatively new to C++, cant seem to find a solution to my problem. I'm trying to randomly generate an array of class objects. I'm using rand() to generate a number 1-3, for the number of objects to generate. For some reason when I use: [code] int c_gen … |
|
Hey everyone, I'm trying to create a string inside a class, but for some reason, my compiler is not recognizing: [CODE] class ob { string name("Name"); public: //code } [/CODE] error C2059: syntax error : 'string' This class is being written in a header file, which has #include <string>. Now, … |