General C++ Programming - December 2014 (Page 24)

Writing my own web framework in C++
 
Hi. I'm trying to write my own web framework in C++ as a learning exercise and I seem to have run into a wall: Basically, I was trying to write something like...
[no replies]
C2678
 
#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; // function definitions bool loadList(int list , int& siz...
[1 reply] : #include <iostream> #include <fstream> #include <string> const int M... (by JLBorges)
How do I get this function to work? (Intro to C++)
 
I'm creating a text based game for my project in Intro to C++. This game has 5 functions and I can't get the function, FirstPhase, to work. It's supposed to tak...
[4 replies] Last: Never mind, someone pointed out the problem. What had happened was th... (by JonnyBro)
Stuck in do while loop
 
I'm perplexed by this do while loop I'm working with. If the string logic is satisfied then it works, but the loop seems to go on infinitely as soon as the stri...
[4 replies] Last: try to remove the cin.get() at line 10 and line 17. (by tanezavm)
Help with Integer variable as stack
 
I am working on a problem and I am stuck. I need to create a stack with the container being an unsigned int. I tried to put in numbers up to four bits each and ...
[2 replies] Last: Ok, thank you. All I need to do now is figure out how to make the prog... (by pathfyndar12)
writing a map to file
 
I'm using maps and writing files for the first time and I get a crazy compiler error when I try to compile the following code. I'm sure it's something stupid, b...
[3 replies] Last: write() takes two parameters, a character array and an integral value.... (by wildblue)
Defining and accessing objects in a large framework
 
What would be a good method of defining wrapper class objects (outside of main) for which there should be no more than one instance per class in a large framewo...
[no replies]
help plz
 
MY QUESTION: Line# 8: could not convert '0' from int to std::ifstream; Line# 24: No matching function for call to TA::set; Can anyone please see w...
[13 replies] Last: the ifstream? buth thanx allot i made a default parameter and the thi... (by mr kutch)
problem with input of strings
 
my cin.getline doesnt let me enter the variable it takes them as null and procedess to cout and finally getch(); what should i do to correct it. i use code blo...
[1 reply] : Is there by any means some other statement like std::cin >> /*...*/ ... (by MiiNiPaa)
c++ generator
 
#include "stdafx.h" #include "iostream" #include "string" using namespace std; int main () { int a; do { cout <<" press any key to obtain a ra...
[1 reply] : You need to seed your random number generator: http://en.cppreference.... (by MiiNiPaa)
Please help me with this program
 
Problem 1 Covering An interval is a pair of positive integers [a, b] with a ≤ b. It is meant to denote the set of integers that lie between the values a and...
[no replies]
Related to string and char array
 
how can i compare an element of the char array and string with single chsracter also how to compare char array to cpp string
[3 replies] Last: thanks this means that cpp strings can also be refered character wise ... (by shreyanshcpp)
Vector of Classes w/ overloaded operators notcompiling
 
I am working on a school project and am stuck in the debugging. I am compiling with g++ and am using c++11. Error message In file included from /usr/i...
[1 reply] : your problem is const-correctness. mark any member function that does ... (by ne555)
by rossb
vector<vector< int> > matrix;
 
I am trying to create a vector of vectors. I am given the number of columns and rows and where some symbols should be. If there are no symbols there is a period...
[1 reply] : // http://ideone.com/sCBcs7 #include <iostream> #include <vector> u... (by cire)
Which way is best/right? pointers and referances
 
When changing a variable using a function, when the variable is outside that function, using pointers, which way is best? They both seem to do the same thing, ...
[2 replies] Last: That's what references are for. When in doubt, look at the standard li... (by Cubbi)
by Tili
hangman program problem. I'd appreciate some help here.
 
Hello there, I'm trying to make a hangman program. I am a beginner, as a result i don't know much about C++ programming etc. My program has a list of 20 words w...
[8 replies] Last: @Tili Great to hear. Congrats. (by whitenite1)
Pointer problem
 
So I have this program that simulates a grocery store checkout. Somewhere in the code, whether it was reading input from the file and storing it in my LookupTab...
[6 replies] Last: Ya I realized it was the same after I wrote it replied lol. But ya, it... (by YoungAminiMan)
by zakels
Question on creating a stardard deck class
 
Hi, I'm currently coding five card poker game. But as I was trying to set up the deck, some strange thing happened. Here are my codes. This is my ma...
[4 replies] Last: @MiiNiPaa Haha I felt so stupid after all Thanks a bunch for the hel... (by zakels)
Programming Assignment Help
 
I need help making this program. It MUST include the following elements: - documentation explaining what certain lines of code do (comments) - 7 variables -...
[4 replies] Last: Yea i was thinking of doing it on like video games...thanks bud (by K117Rocks)
BST with strings confusion
 
I have questions on how the inserting works for strings, I understand inserting numbers and am able to do that. But how do you organize the strings and keep the...
[1 reply] : Err... The same way you do it with numbers? It is no different actuall... (by MiiNiPaa)
December 2014 Pages: 1... 2223242526... 31
  Archived months: [nov2014] [jan2015]

This is an archived page. To post a new message, go to the current page.