Beginners - August 2011 (Page 28)

Skipping input?
 
(Sorry for making another thread, Im doing a bit of catch up tonight) Im working on this code, and it's not nearly done, but I like to check how certian thin...
[3 replies] Last: have you tried cin.sync () before cin >> ? (by TheMassiveChipmunk)
linked list
 
i got it lol
[no replies]
by mahkoe
char pointers
 
So there's another thread about this very topic, but since replies are disabled, I'm forced to ask a redundant question: Why can char pointers hold strings? Wh...
[10 replies] Last: An array also has a location! When you declare an array like ... (by andywestken)
Verifying Input and passing Assert
 
My program needs to accept various user input. Some of those numbers are to be doubles (between 0 and 1). Even though I enter a conforming number (like 0.4 or...
[2 replies] Last: Thanks for looking at this. You're right, this code was fine. I foun... (by joatmon)
no match for 'operator==' in 'weapon == 1734829426'|
 
Whats that mean, and how do I fix it? Here is my code, I'm trying to make a basic text based game. #include <iostream> #include <string> using namespac...
[1 reply] : Dagger is a string, not a single character. it must be between double ... (by bartoli)
Header file
 
Hello all. I am writing a class called dateType. The class definition is stored in a separate file called dateType.h and the implementation of the class is stor...
[2 replies] Last: Ok I fixed it...the main source file was stored in a separate director... (by Maese909)
Classes and Functions Problems
 
I'm getting really close to the end of the C++ tutorial, but I'm having problems using Classes and Functions. What I have is a function which for this example ...
[4 replies] Last: Thanks webJose, it worked! (by Tomeh999)
by drifin
two classes, two lists, one parameter
 
Hi to everyone, i have to classes A and B and a list for every class : list<A> Alpha; list<B> Beta; i make an iterator for each one list<A>::iterator ...
[2 replies] Last: yes you are right !! Thank you! (by drifin)
by IanD
Introduction to CreateProcess()
 
Hi all, I'm having a few problems understanding the syntax of using the CreateProcess() function. I searched the forums, and came up with this page: http...
[14 replies] Last: I see your point Andy and completely agree with you. ^^ (by closed account DSLq5Di1)
Verifying User Input as a Double
 
Is there a simple way to verify that a user input is consistent with type double? like: double n; cout << "Please enter a number between 0 and 1: "; cin >...
[5 replies] Last: Got it. Thanks! (by joatmon)
The solution to activity 2 of hour 5 in SamsTeachYourself C++?
 
Hey, I've been going through Sams Teach Yourself C++, and have been doing fine on the activities at the end. I'm having trouble at this one, though. It's the ...
[2 replies] Last: Ah I see, I'm sorry, didn't realize how that was done, now I do. Ah... (by samalex1014)
Want to start windows programming,wxwidgit or built in microsoft visual studio for freelancing
 
im more or less a novice programmer. im currently doing my bachelors in computer sciences, but i want to start earning some pocket change in a few months. ive c...
[no replies]
help on do-while loop stuck >.<
 
#include <stdio.h> #include <cstdlib> #include <math.h> int main () { int option; char ans; do { system("CLS"); printf("***************************...
[4 replies] Last: while(repeat == 'y'|| repeat == 'Y'); [something liddat] (by Frozendog11)
Ambiguity in exit code return value of program
 
Hi there again, I created this simple program that calculates sum of two variables 'a' and 'b', stores it in variable 'sum' and returns it to main() function...
[3 replies] Last: Thanks for replying nano511 and Catfish. But never mind i got the answ... (by LegendXeon)
Stuck in making a simple sudoku solver
 
I tried out my following code on an empty grid but the solution was wrong....It contained zeroes :( I read this backtracking algorithm from Wikipedia. #inclu...
[2 replies] Last: Thank you. (by manasij7479)
How can I make a growing argument list without overloading?
 
Hey, I'm not sure for a function how many arguments I will need. Is there a way to possibly have a function that can have an infinite amount of arguments withou...
[3 replies] Last: The correct term is "arbitrary", not "infinite". It's not possible to ... (by helios)
Problem understanding Inheritance
 
Hello again, I working through the book C++ without Fear (2nd Ed), and have become stuck on Exercise 17.2.1. The problem is as follows, In previous cha...
[7 replies] Last: Thank-you very much, that works just fine now. (by phy2j2s)
Placing Classes in Separate Files
 
I've got #include <iostream> #include "Burrito.h" using namespace std; int main() { Burrito bo; return 0; } #ifndef BURRITO_H #...
[5 replies] Last: I'm with andywestken on this one. That's the only thing I can think of... (by Zhuge)
Making program for file deletion
 
Ok, so I'm very, very new to C++ programming, and programming in general in fact. I know about some simple coding and syntax like boolean operators, if statemen...
[5 replies] Last: Just run ccleaner and degrag like others have said. Ccleaner gets rid ... (by ResidentBiscuit)
Array issues, first time using them.
 
Hello. I have to write a program that computes the averages of tests using arrays. I copied most of the code (all but the print report function) off the board t...
[3 replies] Last: Thank you both! (by Major Tom Servo)
August 2011 Pages: 1... 2627282930... 39
  Archived months: [jul2011] [sep2011]

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