Beginners - May 2011 (Page 27)

by tagir
c++
 
hi dear sir .i want a program of a calculator.thanks
[2 replies] Last: http://cplusplus.com/forum/lounge/42426/2/#msg231761 :) #includ... (by Mathhead200)
Several problems with recent programs...
 
I am working with a structure and switch statements as part of a homework assignment, but for no explainable reason, it is giving me the error "; missing befor...
[4 replies] Last: phoneTones keyToTones (char key) { ... return ... //I didn't... (by Mathhead200)
Cout text
 
Hi Guys, I want to cout this text <?xml version="1.0" encoding="UTF-8"?> when I use cout << "<?xml version="1.0" encoding="UTF-8"?>"; The compiler shows erro...
[2 replies] Last: Thank you Moschops it works (by khaled124)
How to print a linked list located inside another linked list struct?
 
Hi, I've been staring at the screen for 30 hours it seems and haven't gotten a single "A-ha!" light bulb, so I'm reaching out to the pro's. I have a couple of l...
[6 replies] Last: Is it possible to simply do listA = somestuff? Yes. (by kbw)
GPA calcutor error
 
adfdsad
[6 replies] Last: ok i have changed as you said but it still can calculate GPA ? where ... (by malikrgc)
Having problems with switch cases..
 
Im writing a simple little rock paper scissors game and i have ran into a problem. I'm using a switch statement on the variable decided by cin. It is the varia...
[7 replies] Last: i went through and added a score system. Converted it to kbw's suggest... (by crushgear64)
Calling a Function
 
Hey Guys Im writing a program to mimic the game 'yatzee' and I have found that int main() is not reading the functions for each category I have assigned a func...
[4 replies] Last: ahhhh yes thank you still needs alot of work but thats much better (by brad2233)
How to create binary tree with linked lists?
 
Hi, I need to create a binary tree using linked lists like this: struct node{ node *left; int data; node *right; }; the *left points to the left ...
[5 replies] Last: Thanks everybody. :-)))) (by SaeedOmnia)
fight simulation
 
everything seems to be going as expected except player1 always wins ALL of the fights, I have no clue what I'm doing wrong here, please help if you can ...
[1 reply] : Firstly whoever has the first turn will always win since you never swa... (by frankctd)
by kassik
reading file
 
Hi I'm doing a little c++ project. I have a notepad file and I would like to read each line into a separate array of integers.Suppose I have a text file that l...
[6 replies] Last: Thanks. it worked I'm happy. (by kassik)
*app*.exe has encountered a problem and needs to close.
 
Hello! First of all, this is not a concrete problem that requires solving, but rather a general programming question. There are several situations in whic...
[2 replies] Last: Thanks, that helped! (by Ramses12)
by tapir8
What is a good book to read after finishing C++ For Dummies All in One?
 
After C++ For Dummies all in one, what book is a bit more advanced?
[3 replies] Last: Programming with c++ for Claude delanoy, after thinking in c++. (by madi L)
please help me with this one
 
Write a c++ program that accepts three card values as inputs and calculates the total value of the hand and display the value of the three cards. How would I...
[1 reply] : # include<iostream> using namespace std; int main () { int ... (by romer123dd)
.inc files in c++
 
hello. I am learning c++ right now and have been making some basic programs.i came upon these files which i saw in a program code and i dont realy know how do ...
[1 reply] : When you include a file, it doesn't matter what its extension is. What... (by hamsterman)
Mental Help!
 
*facepalm*, *head pop*, *cry*, use whatever you want to describe my frustration. Just saw (sad, right?) the forum thread about how consoles are bad for games an...
[1 reply] : Step 1) Get SMFL http://www.sfml-dev.org/ Step 2) Install it at get... (by Disch)
Function outputting 0.00
 
The rest of my code wouldn't fit in the window very nicely so I just copied the function that wasn't doing what it was supposed to and the output of the whole p...
[3 replies] Last: ...What happened to the original code you posted? (by Zhuge)
I don't get what's preprocessor.
 
I know what it is,But in all books it's just not typpen wich preprocessors use for kinds of codes.
[5 replies] Last: Put my program above into x.cpp. Type: g++ -C -E x.cpp (by kbw)
Passing an array to a function, int and string
 
So, for this homework i'm doing i have to pass two values to a function, one's an int and the other is a string, i'm getting these two errors and have no idea h...
[3 replies] Last: Well, just look at your cout line, and what the variables in it mean, ... (by freddy92)
Extracting numbers from files
 
Okay, title says it all :P I have a file with a text on the top line, and a number on the second. How do I extract the number into a variable... Like, int ...
[5 replies] Last: Oh, now I get it. Thanks Fire, sorry Ham* :D *Please speak the langua... (by Shay9999)
definition + integer confusion
 
I am attempting to make a for loop that will simultaneously count up ++ til eight, and also place the number at the end of a file access. Looks something like t...
[6 replies] Last: The FF >> ss; is kind of screwing it up some how. (by LittleQuick)
May 2011 Pages: 1... 2526272829... 48
  Archived months: [apr2011] [jun2011]

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