Beginners - September 2011 (Page 21)

2 Errors with Else Statement
 
Hello, I am a beginner to C++ programming. I am having trouble writing a simple if and else statement. The errors that display are: error: expected p...
[4 replies] Last: Firedraco, You're right. I think I should go over some things and the... (by Code Assassin)
CS106B Graphs: for each with collection of pointers
 
Self-studying Stanford's online CS106B. This code is copied directly from the book, the last chapter on Graphs, but I can't get it to run and don't understand w...
[2 replies] Last: Thanks for the answer. So I dug a little deeper. It's a precompile... (by eXistenZ)
New to Programming ;D
 
Hey Guys! I'm kind of new to programming and my professor gave me an assignment I don't know how to complete, is there any one of you that could help me out...
[8 replies] Last: thanks i tried that and added some other things of my own and the code... (by nc assassin)
Input Username and Password
 
Hello, I am currently in the process of making my first text-based RPG ( based on C++). I want to have users make an account before they start playing the RPG....
[8 replies] Last: Thanks so much, hackinghorn! It works perfectly! - Code Assassin ... (by Code Assassin)
birthday paradox problem
 
hello all.....im extremly new to c++ and trying to take this in collage and have the following homework to do: Instructions: The Birthday Paradox. (This prob...
[5 replies] Last: It's called a paradox because at first glance it seems counterintuitiv... (by helios)
by gladi
Just Explain
 
Hi guys I would like to understand the code and from where i can start. I need write a function that goes through a linked list and see if the words in the l...
[5 replies] Last: wow : ) it was very helpful man I really appreciate your efforts. to... (by gladi)
Harmonic Sum
 
Ok so I've got it so it shows what the number being added will be at each N (as in at N=6 it will be 1+1/2+1/3+1/4+1/5+1/6) however I can't get it to add them u...
[1 reply] : You'll need to make a variable that keeps track of the sum and print t... (by Disch)
by andyy
Error C2660 help
 
I'm currently working on my classwork and these two errors keep on popping up. What am I doing wrong this time? 1>c:\users\andy\documents\visual studio 2010...
[2 replies] Last: edit: got it, thanks (by andyy)
Pointer Syntax Problems
 
I'm trying to write a proof-of-concept basic string parser in C++, something I had no trouble with in other languages. C++ is giving me a headache, however, bec...
[4 replies] Last: Do you mean that C++ supports pass-by-reference? I was told that poin... (by firedraco)
Class help
 
Ok, I'm making a calculator and i need help with something. I need my class to access a global variable. Here is my code: // Calculator v1.0.cpp : Defin...
[1 reply] : First, initialize those 3 global variables. Uninitialized variables ca... (by closed account zb0S216C)
Won't compile until I move declaration?
 
I jumped into C++ to make custom .dll addons for a space flight sim called Orbiter.(http://orbit.medphys.ucl.ac.uk/) Orbiter uses .dll files to create, among ot...
[1 reply] : It's because you are declaring it inside of the do while loop, so ther... (by firedraco)
My first post and a class
 
Hi, I'm am working on a code to overloaded the addition, multiplication, and subtraction operators. I want to do this in my class, which I guess would be my hea...
[5 replies] Last: [quote=hanst99]There is no such requirement, returning an Rvalue is co... (by closed account zb0S216C)
by dan1
trouble getting started with Visual C++ Express 2010
 
As my title suggests I am having trouble getting started. I have installed it successfully and decided to proceed to writing the first program on it which was g...
[3 replies] Last: @hanst99 Yes it is definitely Visual C++ Express 2010 :) I agree, play... (by dan1)
Newbie back for more
 
So I've got a lab due tuesday and I am at the point where I'm just confused. It's a skeleton code and I have no idea really where to go next. I remember that it...
[3 replies] Last: Yeah I know the while loop is a pain, we talked about it in class, apa... (by Evilcise)
Reading from a .txt file.
 
A program I'm making takes a username and password. The username is the name of the .txt file and the password is kept in the file. I was wondering how I ...
[4 replies] Last: Say the password, 'hello', is in the file, how could I get the program... (by Ben Duncan)
Multiple Choice Program
 
Hey! I've been trying to make a multiple choice program with if and else, but I can't figure out how to do it. This is what my code is so far: (I'm on a Mac ...
[2 replies] Last: Here is an example of how to use if and else statements: if(conditio... (by Code Assassin)
by maxivz
My encripter gives me a runtime error
 
Hey guys, i have been developing this simple password encriptor. The problem is that it build without any error messages, but once it starts running it crashes...
[1 reply] : Are you familiar with the technique called debugging? If you're not f... (by webJose)
by cueks
Convert Array of Double to String
 
I found C++ code somewhere out there, that makes me interesting. array of double is printed as a string. how can I do like that?? give me some advice please....
[3 replies] Last: For the curious the OP's program prints the following: punya lude... (by shacktar)
.txt into 2D Array
 
I am working on an assignment that is a text based game. It is a simple game that allows you to control a space ship and avoid asteroids. I am stuck on one part...
[no replies]
C++ lab- plugging variables into equations
 
Hello everybody. I am a beginner at C++ and have a lab assignment due that i am a little lost on. The lab states that i must create a table using iomanipulators...
[2 replies] Last: I'm still confused as to how to plug my t values into those functions ... (by munkalla)
September 2011 Pages: 1... 1920212223... 48
  Archived months: [aug2011] [oct2011]

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