Beginners - September 2012 (Page 28)

College Tuition Program
 
I'm writing a program that finds that college tuition of any random student. I seem to be missing a semi colon in line 72 http://pastebin.com/RRJ76hkx is my...
[5 replies] Last: Thanks for pointing out those other mistakes now I get to sleep for a ... (by Raioner)
by pinmi
Getting started on Blackjack Game
 
Hello all, I am looking to start a semester project creating a Blackjack game using MS Visual C++. I am a beginner in C++, my understanding is very basic ...
[3 replies] Last: Thanks much for the suggestions. Both helped a lot to get me started! (by pinmi)
Limit input when a number is entered...
 
I've been away from programming for a loong time, so I have a basic question regarding a program I'm writing for class. How do I end input if the user types -9...
[1 reply] : cout << "Enter trader " << index + 1 << " number (or -999): "; cin >>... (by Aceix)
Read and write textfile using pointer
 
Nevermind fixed it
[1 reply] : The file input and output works for for me, there are just a couple th... (by monad)
How to use the input value?
 
I'm now working with a robot using C++, and I want the robot to react based on user input. For example, I want the robot to move when input is "Yes", how can I ...
[3 replies] Last: Thank you so much, both of you! I just tried your codes and both of th... (by Echo1994)
Rewriting strtok
 
I stayed up late last night trying to complete an assignment. The assignment seems to want me to rewrite the strtok function, but my grasp on pointer manipulati...
[6 replies] Last: OK, here I am. First, make sure to click on the link I gave you, and ... (by Duthomhas)
by MW130
xcode how to set search paths?
 
How do i set a search path for my frameworks in xcode?
[no replies]
My program is sloppy - help intro'ing new functions
 
Hi, I am taking my very first C++ course and I may have jumped ahead too far. I have this program created that takes song titles and there play times (in the f...
[2 replies] Last: I feel I am getting closer to what I need (refer to first post). Alth... (by R2B Boondocks)
by MW130
Question about sdl
 
I am new and I use xcode, I have a question about sdl. When I drag all the 38 header files, they appear and are on top of the one that says main.cpp and I then...
[4 replies] Last: monad, thank you soo sooo much!!! (by MW130)
by gta100
Program crash with cin.get() function
 
Hello everyone! My program is supposed to get user input of numbers, and stop the user input by typing '|'. However, my program always crash after I entered the...
[6 replies] Last: for ( ;; ) {} is one way of writing an infinite loop. (by cire)
by MW130
problem in xcode rly need help
 
Hi i am new to programming and was making a simple program and I dont get an error, but when i run in out put i get a thing that says lldb in blue. On line 8 i...
[8 replies] Last: aceix, I really dont know lol Im sorry It just stopped, I think cause ... (by MW130)
multiplication problem
 
I am working on an assignment for a class but for some reason * does not work. I keep getting an error saying "error C2676: binary '*' : 'std::string' does not ...
[3 replies] Last: (Please use double and not float , unless you have a good reason.) ... (by Mathhead200)
Appropriate Loop Needed
 
Hi there, being new to the forum i simply hope this is firstly in the right forum but i am here to ask a question that i have been stumped on for hours and that...
[4 replies] Last: No problem, just make sure you understand why it works. (by Mathhead200)
Numbers Drifting
 
Hi Guys Heres My Code It's really Simple I'm very very new so hope you all can help #include "stdafx.h" #include <iostream> int main() { using name...
[4 replies] Last: A double IS a floating point number. A double may have more precision ... (by Moschops)
eat and talk at same time?
 
I'm using the GetAsyncKeyState function to move a char "H" inside a 10x10 array. "H" can only move where there is an empty space, or it replaces whatever I tell...
[1 reply] : use a for loop to access each element of the array then use an if stat... (by Aceix)
getline skips first ?
 
Hey, I'm wondering if someone can help me with my problem. In my code, getline skips the first time it's used. I have no idea how to get it working right, and n...
[5 replies] Last: Thank you again. (by jmeadors24)
Counting specific string in a TXT file
 
I'm needing to search through a text file and count the occurences of a specific string within the file. For example, the file contains many occurences of "V00...
[3 replies] Last: How about count_if() ? #include <iostream> #include <fstream> #inc... (by andywestken)
by EZX
Why is my code not working?!
 
Im making a program which converts meters into decimeters and then centimeters, and want to show it as for example 3m=30dm=300cm like that but i have no idea wh...
[3 replies] Last: not sure why i put / in there WOW!!! (by Aceix)
I'm missing something in this program.
 
Hi everybody, This is my first time taking a C++ course and I need some help. I'm missing something in this program. When I run the program and introduc...
[3 replies] Last: Moschops & Stewbond ,Thanks so much! (by laumonique)
string parameter and comparison
 
//Expand vector<string> expand(string* input) { string options ; //<ABCDP,> if (input.compare("ABCDP,") == 0) options = {"AB,CDP","AC,BDP","AD,B...
[2 replies] Last: string::compare is for three-way comparison. You only need a boolean c... (by Cubbi)
September 2012 Pages: 1... 2627282930... 62
  Archived months: [aug2012] [oct2012]

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