No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Using Dev-C++ Im a newbie to c++ Is it possible to save files using a variable as the filename. What i want to do is setup a text based program like a mud and be able to go from room to room and have it display room discription and available … |
|
Hello everyone Is it possible to use a variable for a vector name eg [code] MyVar.push_back(line); [/code] |
|
Re:
Hello, noob here. I just started taking a C++ class this semester and I've been understanding everything so far, but I'm sorta confused on the nested if statements. My homework is to have the user enter a number and it'll show the roman numeral. However whenever someone enters an invalid … |
|
Can anyone help me with some goods sites that give detailed explanations of libraries available to c++ |
|
How do i convert value back to const char [code] #include <stdio.h> #include <iostream> using namespace std; int main() { int i, value; const char text[] = "456"; for (i = 0, value = 0; text [i] != '\0'; ++i) { int digit = text [i] - '0'; value = … |
|
Im having trouble clearing the strg variable in my code, i have tryed cout<<flush(); and <<endl but each time i run the function it concatenates the new data with the old. [code] #include <fstream> #include <iostream> #include <string> using namespace std; int main() { static char str[12], strg[100]; char ismapname[] … |
|
Hello Im hoping someone could help me with this code, i have used comment notations to show problem areas. If anyone has suggestions on how to improve this code or see's something i have used that may be wrong(mixing the wrong class or code) please reply. [code]#include <fstream> #include <iostream> … |