Beginners - November 2011 (Page 45)

Pointer Problems?
 
Can someone tell me why my nodes are not getting inserted using this technique? I've never programmed in c++ before a couple weeks ago. thanks in advance. ...
[13 replies] Last: ok, so I figured out that tmp wasn't getting initialized in my random ... (by cymatic)
by dean
Get & Set properties in C++??
 
Hi, sry I have some Java experience but I am a rookie in C++. Looking at the reference of this website for the Vector, I was surprised that the method vector::...
[7 replies] Last: Yes, but then you have to declare a toString () function for every ... (by Duthomhas)
Something weird with array declarations
 
Hey, I'm trying to do somethign really simple but why it's not working I have no idea. Here's a section of the code. void Hardware_test::report(int succe...
[4 replies] Last: Thanks, I can't believe I didn't see that. (by TheMeerkat)
Console Game Closes Down
 
So I have been looking at a bunch of different compilers and I tried out Dev C++. I really liked it but when I try to compile a program it closes the game down,...
[1 reply] : http://cplusplus.com/forum/beginner/1988/ Also, http://cplusplus.com... (by Moschops)
by miscue
randomizing the answer to a Choice in C++
 
Hello there, I am new to C++, and I am having some trouble with some code I am writing. I have written a program that works, but it is not quite what is want...
[10 replies] Last: Thanks for the help, I finished my code! (by miscue)
Using String to output a grade
 
I have a program where you imput a grade from 0% to 100% and it will output your letter grade. Im getting an error saying cout is ambiguous. Any help would be a...
[6 replies] Last: Got it, thanks! (by doubletime23)
Vectors
 
I have written my first program using vector, however I can't get it to compile. Lines using vector, like: std::vector<sf::Image> iPlants(60); return the er...
[13 replies] Last: Or equivalently, using the constructor's initializer list class Some... (by andywestken)
Reading from an Array of Structs
 
Okay I have to read information from an array of structs and compare them to an average, printing out the structs that are greater than the average. Problem is,...
[no replies]
by ivlatt
String comparison loop
 
Hi all, I am creating a banking application and after working on it pretty much solid for 2 weeks, I am close to completion. I thought creating my menu driver ...
[7 replies] Last: Thanks alot, it's working now Been working on it for like 8 hours str... (by ivlatt)
One last minor issue....
 
I cannot get the Volume calculation to output correctly. (thi * pi) * (r * hei) = 1/3 * 3.14159 * 36 * 12 = 452.4 But my output shows a different 11 digit fl...
[5 replies] Last: So I simply changed <1.0 / 3.0> to 3.333 and it works great. I will re... (by jesse1221)
by hbjgd
Point me in the right direction
 
I just need someone to point me in the right direction to go for this. What I am attempting to do is to have the user input the file name in which they want to ...
[no replies]
by SonyaK
Pulling first letter from each word in string?
 
Hi! I'm trying to create a program that reads a file and pulls the first letter of each word in a string (a sentence of nine words) that will then spell a diff...
[14 replies] Last: Okay, I'll give that a try. Again, thank you so much for all of your ... (by SonyaK)
Need help with to get numbers from procedure.
 
#include <iostream> #include <iomanip> #include <vector> using namespace std; int main () { vector<int> m; while (true) { int a; ...
[no replies]
Begginning with multi-dimensional vectors
 
Hello all, I am new here to cplusplus.com and I was hoping you guys could answer a question of mine. So I'm very very new to c++, but have had ample experien...
[no replies]
by cpatee
Reading data from file
 
Ok, I'm running into an issue here. I need to read data from a file into 2 arrays and then do a bubble sort to put in alphabetic order, The bubble sort is no pr...
[1 reply] : Why would you want to put them into two arrays? Perhaps you meant a si... (by mzimmers)
by Dimpy
need help!!! exchange 1st and 2nd elements at the front of a queue
 
Hi, I got stuck while writing the code for exchanging first and second elements at front of the queue.This is how I considered: there are 2 elemnts with 2 bool ...
[no replies]
i need some help plz.. check the error in my pro
 
#include<iostream> using namespace std; typedef int errorcode; #define success 0 #define underflow -1 #define overflow -2 template <class T> class nod...
[6 replies] Last: thanx Disch .. ur the best ever :)) it works .. (by eng soso)
by thanos
bank account
 
keep getting an error for the the cases, any one help us out? thanks in advance #include <cstdlib> #include <iostream> #include <ctype.h> using namespa...
[2 replies] Last: Sloppy sloppy. Here i'll repost too make it easier on the eyes. Line... (by hbjgd)
by JBabyJ
Is somebody willing to look at my lab and see what I'm doing wrong?
 
I am so frustrated, and I don't understand the errors. I will send it in a Word Document. Please let me know!!! Thanks! Joanie
[6 replies] Last: ok, well send it to dacster13@yahoo.com. (by Dacster13)
i'm trying to create a simple ATM program...it's a bit of headache
 
I'm trying to create a simple ATM program, to ask for pin input, to verify the pin against a set pin input limit of 3 times, doing some balance for the money r...
[4 replies] Last: Please wrap you code. with these: [\code] but \ should be / #inc... (by hbjgd)
November 2011 Pages: 1... 4344454647... 65
  Archived months: [oct2011] [dec2011]

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