Beginners - March 2014 (Page 9)

Only constructors take member intializers
 
I'm working on a code for my Computer Science class and in this project we have to make a knight jousting game. But in the game we have to have two separate cla...
[3 replies] Last: weaponStats is not a constructor, a constructor has the same name as... (by nvrmnd)
getting error
 
i am trying to convert 24 hour notation to 12 hour but i am getting an error can anyone help me ? (the error is in char type) #include <iostream> usin...
[5 replies] Last: You are welcome! (by eyenrique)
by layanM
loop program
 
I really need some assistance [# include <iostream> using namespace std; int main() { int total,n,sum=0,counter=0,x; cout<<"Enter tota...
[8 replies] Last: really thanks guys i appreciate your efforts thnks a lot again (by layanM)
How do you read information from a file and send it to a array?
 
Okay, I am lost on how to send information from a file that has names and numbers into the arrays so then I can display the information afterwards from the arr...
[1 reply] : It depends on how it's stored. Generally, if you're the one defining t... (by MatthewRock)
trouble with a simple function
 
So i have some code that is coming up with an error on line 15 saying it needs a ; can some one explain what is going on here? #include <iostream> using na...
[3 replies] Last: thank you so much you are amazing!! (by owenkmc)
Memory Fault- Core Dumped
 
Hi all, I am starting to learn about how to use stacks. However I am having a problem with popping off the stack. I was wondering if anyone could explain to ...
[4 replies] Last: Is it the same debugger as the gdb debugger? I've never known there wa... (by mlholder)
[Homework help]Help with Data sorting from file
 
Hey y'all, new to the forum and a tad more than halfway through my first C++ course. I am absolutely fried and stuck on a homework question, I have searched for...
[2 replies] Last: +1 ccsdude (by Smac89)
Duplicating output
 
The problem is in the function remove(), it's causing 'guave' to duplicate and also is removing strawberry from the output in the 'remove banana' and 'remove or...
[5 replies] Last: you shouldn't be using "==" with strings with two std::string's this... (by giblit)
struct,array
 
I am trying to create an array of struct but errors keep on occurring, and i do not know why, plz help #include <iostream> #include <string> using nam...
[7 replies] Last: In your first for loop, why are you using a function to set the data? ... (by MagicalForestElf)
Array crashing program
 
Write your question here. void buildSalesArray(double salesArray ) { int Month = 0; double Amount = 0; ifstream ifs ("sales7.txt"); char c ...
[4 replies] Last: char c = ifs.get(); if (ifs.fail() ) You shouldn't check like t... (by giblit)
I need help with Classes/structures!
 
Hi I am currently writing a code that finds the birthday of someone! -The class should have a three parameter default constructor that allows the date to be ...
[1 reply] : Maybe something like this: #include <iostream> #include <sstream> #i... (by MagicalForestElf)
Fairly new.. Need help.
 
Hello! I am fairly new to c++ & have a few questions. I do not have a specific project I am currently working on, but I am trying to learn as much as I ca...
[4 replies] Last: Now that I read his topic again... yeah. My first advice would be "do... (by Disch)
Array HELP BADLY
 
I am totally confused on how to do a tasks. Im trying to generate a program that is a One-Dimensional array of random elements of type interger defined in the r...
[3 replies] Last: Do you know how to generate random numbers? If you do then how about ... (by ccsdude)
defining struct node pointer in main
 
Hey guys i need help on how to define a node pointer in main. here is my .h file (tree.h) #include <string> #include <sstream> #include <iostream> ...
[3 replies] Last: Outside the tree class. Or you could define it in public section, but ... (by MatthewRock)
Can someone please explain whats happening to this input
 
Hi Guys, I am trying to validate this input in these functions that I have created for my roulette program. The rest of the program is much more intricate an...
[5 replies] Last: Yes, 3.2 cast to an integer becomes 3 and that passes your test of fal... (by Computergeek01)
Need help with Tetris shape rotation.
 
Hello. I am new to this forum and this is my first time asking for help here. I normally can figure out solutions on my own. I am working on a Tetris console ga...
[no replies]
Assigning cout() to a variable
 
I am attempting to assign a cout statement to a (class member)variable with great difficulty. I would be grateful for any assistance available. I am using...
[8 replies] Last: [quote=giblit] cout is an object of type iostream. ostream Th... (by AbstractionAnon)
MinGw 64
 
Write your question here. How do i download MinGW 64 from sourceforge? It gives me an option where it shows the 4.8.2 version, but when i click on it it does...
[3 replies] Last: Nevermind (http://www.youtube.com/watch?v=1nsjGxy1w0U). This is in det... (by generic2709)
VS Express and Codeblocks created C++ programs will not work in Windows 7 64bit
 
So I have started to go back and re-learn how to code in C++, but I have very little programming experience outside of using c++ in college. My problem is t...
[2 replies] Last: Thank you CBasic. I checked my installs and I have everything you say.... (by PaulusParvus)
by v1t0ry
Files in C++
 
I am new in C++. Can anyone help me with the problem: Re-write the file copy program below with two functions one to open the infile and another one to open the...
[1 reply] : http://www.cplusplus.com/reference/istream/istream/getline/ (by mutexe)
March 2014 Pages: 1... 7891011... 79
  Archived months: [feb2014] [apr2014]

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