Beginners - October 2012 (Page 17)

Program Reading Letter Grades
 
This is what I have so far. any and all help is greatly appreciated. My program has a class of 20 students and D or better is passing at the end i have to tell ...
[9 replies] Last: First off, you have the program set up so that it only takes one grade... (by BlueScreenOfDeath)
How do i get a yes and no question?
 
So, I'm completely new to C++ and I chose it as my first programming language. Now I've decided on this one and I realize how powerful and hard this language mi...
[3 replies] Last: hey thanks a lot, it worked, it gave me an understanding on how to use... (by eric42724)
by Jeff C
Sorting Function Almost Sorting
 
Hello, I'm trying to write a program that will for the time being, display the finishing order of a race, given the "results" file of that race from the serv...
[no replies]
C++ Text Adventure - Inventory Class?
 
I'm working on a text based RPG for our last big project for school. I'm still developing all of the Classes and such, but I'm trying to just work on small chun...
[4 replies] Last: Also to use polymorphism: #include <iostream> #include <string> #incl... (by Lowest0ne)
Random Number Generator Not Working
 
I am trying to make a number guessing game and I have ALMOST everything working. The number generator, however, does not work properly. It only generates the nu...
[9 replies] Last: Also: int guess, num = random(1, 25); This is being called outside ... (by dylan w rose)
by Tasdiq
Dont understand issue with getline(something else?)
 
#include <iostream> #include <string> #include <iomanip> using namespace std; int main() { string monthone; string monthtwo; string monththree...
[7 replies] Last: Instead of getline(cin,monthone);, it would just be cin >> monthone; (by freddy92)
Premature console closing
 
Hi I am new to CPP and am writing a program that determines how attractive a user is based on what foods they eat most and the program is cutting out before you...
[3 replies] Last: hey, just a hint, rather than doing something like if(choice == 'A'... (by NanoBytes)
read data from a textfile and pass it into 2D-array
 
Hello guys, I have a slight problem. I want to read in data from a text file and store that in a 2D-array. Then I have to print it in another file. The content...
[19 replies] Last: Without the spaces between the numbers you only have three numbers in ... (by jlb)
by dcftci
reading data from file into a vector??
 
hi everyone, so I'm trying to read data from a text file into a vector but the data is like 13 24 12 45 23 12 so it goes as lines and i want to s...
[5 replies] Last: You can have one and only one function with the name of main() in the ... (by jlb)
destruct0r
 
i have applied a cout statement with destructors,the programe is executing excellently but n0t showing the destructor cout statement but the constructor cout st...
[8 replies] Last: but y these brackets are used in main programme && y not compiler sho... (by cire)
Input Number Output Digits
 
This is my code so far I'm not entirely sure how to get this to work any and all help is appreciated. The objective is to take a positive integer and display ea...
[3 replies] Last: Thank you so much that really helped. (by GIjessiebear)
Data from file is not being input into array
 
I am going to post the header file and the implementation file so maybe somebody can help me figure out why this is not working. I am trying to input data from ...
[2 replies] Last: Thanks, I was switching between this pointers to see if it made a diff... (by NostawTtam)
Read data from a file to another using fscanf and pass it into 2D-array
 
Hellp readers, I have a slight problem... I want to read data from a textfile to another by using fscanf. The problem is that the output in the document is wro...
[no replies]
Help - Program that displays a generated number (1,2,4,8,16,32,etc)
 
Hi, I'm working on a program that is supposed to use a for loop to generate a number that runs in an increment to display numbers like 1,2,4,8,16,32,64...basica...
[4 replies] Last: I think you need a tutor.:) (by vlad from moscow)
Console Digital Clock
 
Hi I am trying to draw a digital clock using a console in c++. The idea is I use a 3D array to store 7x7 representations of the numbers 0-9 plus ":" and ".". Fo...
[14 replies] Last: Thanks have it all fixed and finished. (by martianxx)
How to make on C++ to show out the bigger number
 
Hi, I'm new here and I have one little problem. We have to make a program which need to show out the bigger number (from three numbers). I can make this with fu...
[3 replies] Last: if you were wandering the ternary operator ?: is pretty similar to an ... (by martianxx)
arithmetic functions
 
Hey there, I need help understanding the assignment I'm working on. I need to define four arithmetic functions named add, sub, mult, and div Each function s...
[12 replies] Last: I have no clue on books, to be honest; I learned most of my C++ from U... (by MrHutch)
how to programe in c++ using palindrome
 
can anyone please help me write a programme in c++ using both a stack and a queue of characters,and both stack and queue are linked list implemented.and to chec...
[2 replies] Last: You can store the word in an array of chars (cstring) and use a for lo... (by martianxx)
Making Calculator say "error" when dividing by 0
 
Right, first of all after about 12 years of doing maths. I've just learnt that if you get an error on any calculator if you try to divide by 0 i.e 7/0. So afte...
[1 reply] : It will always crash if you actually devise by zero (hardware interrup... (by codewalker)
I don't know what is the problem (Functions & Structures)
 
Hello I have an assignment, I did it right but the last step won't work out, no idea why. Here is the whole question Part I: Lab Exercise Struct (Rec...
[2 replies] Last: Actually, looking at the code again, there is a particular type of des... (by Chervil)
October 2012 Pages: 1... 1516171819... 84
  Archived months: [sep2012] [nov2012]

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