Beginners - October 2013 (Page 47)

Classes
 
So i wrote this code to find all routes a user can take on a subway however now i have to use 3 different classes to do the same thing and i cant use an adj. m...
[6 replies] Last: so im wondering how i would get the adjacency matrix into the subway s... (by ninthred)
Help me
 
who can fix my program auto compute all total work hours and total work overtime //Library :D #include<iostream> #include<fstream> #include<string> #i...
[1 reply] : Please state where you have errors and also the error messages the com... (by nvrmnd)
Do-while loop wont work!
 
#include<iostream> using namespace std; int main() { char a, b, choice; int player1_wins = 0; int player1_loses = 0; int player2_wins = 0; int player2_lose...
[11 replies] Last: You weren't supposed to copy/paste you were supposed to fill in the bl... (by giblit)
Having trouble with if statements. Please help!
 
So I am writing code for a simulator. It's been a few months since I've coded and I'm really rusty. I am trying to do an if / else if statement and when I run i...
[2 replies] Last: Thank you, so much! (by mayrock112)
What should my code be?
 
write a C program that can be used to calculate the score needed on the final exam to obtain each possible grade in the class fiven the scores obtained up to th...
[no replies]
Append a char* to a char**.
 
Hello, Is it possible to append a char* to a char** without knowing the size of any of the variables? For example: char **tokens; // This is "Hello, ...
[6 replies] Last: Thanks! So I got rid of line 15 and it works! Does tmp deallocate au... (by closed account 18hRX9L8)
Determine if relations are reflexive
 
Hello all, I am working on a program that will look at a relation and determine if it is reflexive. So far I am able to go through the pairs and determine if th...
[2 replies] Last: That is what I' m having trouble figuring out where to put the return ... (by trevormoon)
graphics and c++
 
I have been learning C++ on netbeans by experimenting and referencing to the tutorials whenever I get lost, but now I need a little more help. I just finished m...
[2 replies] Last: Learn a Graphics Library like Disch said, SFML is the best for beginne... (by Uk Marine)
Numbers, comma's and decimals question.
 
Hello, newbie in C++. A problem just wondering. I have to enter a value as a C string in the form xxx,xxx,xxx,xxx,xx.xx, where x can be any digit. so(35,000.00...
[no replies]
by tce19
Basic flow control
 
A lending institution wants to develop a questionnaire to determine what mortgage rate is available based on the type and duration of the mortgage desired. To ...
[2 replies] Last: Hi L B THANK FOR YOUR HELP (by tce19)
Help with arrays
 
Hi guys, I'm writing my first intro programming midterm tomorrow, and need a little help with arrays. This is my first time programming so I'm very new. I wa...
[1 reply] : #include <iostream> #include <cmath>//you don't need this in this cas... (by Chriscpp)
by aram4
Reading from file and saving to struct
 
I have read so many different opinions, I have gotten myself confused. I am trying to read from a file (of the "user's" specification) and store the data in a ...
[8 replies] Last: Wow - this question became a lot more complicated since yesterday! Tha... (by Chervil)
Sum of first n numbers
 
Trying to get the sum of first n numbers. If I enter in 3, the sum I get is 11. Anyone tell me whats wrong with equation? int sum; sum=0; int counte...
[1 reply] : Why are you setting the value of sum twice? Why are you including cou... (by LB)
For Loop help. PLEASE
 
Hello all, I'm trying to figure out this damn problem but don't know where to start. Any help will be greatly appreciated. Thanks. For example: A fund rai...
[4 replies] Last: CS14? Noticed both your posts lol, any luck? (by igoyee)
URGENT!!! My program wont run!
 
i need help with my code :/ i want it to run again if the user wants to play again. i think i need a do while in a do while but its not working. if i take away ...
[4 replies] Last: solved! had playAgain as an int :/ (by zedlander1000)
Question about syntax/form
 
I am just curious which of the following would (generally) be considered better form. I have seen examples of code written both ways, but am not experienced eno...
[3 replies] Last: It has to do with Oracle's styleguide. (by LB)
by Caith
Homework help on dealing cards
 
Trying to write a code that shuffles a deck of cards and then deals them. I think I've gotten most of it down, I just have 2 problems. 1) My deck is not shuffli...
[3 replies] Last: The deck you define in the private section of Deckofcards is not the d... (by histrungalot)
Need help with a switch inside a while loop
 
Can anyone tell me what i'm doing wrong the code is suppose to take a grade and loop until it receives anything that is not a grade. it compiles with no errors....
[3 replies] Last: Use a separate bool variable. (by keskiverto)
by Alehar
No match for 'operator>>'in 'std::operator
 
Hi, Im creating a simple program but i cant compile because it gives me that error. #include <iostream> #include <fstream> using namespace std; int m...
[7 replies] Last: If you don't understand the error message, ¿why did you remove inform... (by ne555)
Strange question and strange problem
 
Hello, I have a relly serious problem. I'm trying to read my txt file Tr1 6 1.5 -5.5 5 -1.4 8.5 -5.2 Aps3 3 5.5 -5.5 10 Kt4 8 -3.5 -0.5 -3.5 5.4 2.4 5.4 2.4 -0...
[6 replies] Last: coder777, big thanks! (by deividas717)
October 2013 Pages: 1... 4546474849... 86
  Archived months: [sep2013] [nov2013]

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