Beginners - November 2012 (Page 13)

Hello! Easy help please.
 
Hello! I have a text file like this: 2010-05-07,48640,10SW,$10.00,Washington 2010-07-08,48606,5N,$0.75,Fuller 2010-07-31,48441,15S,$2.35,Lincoln 2010-02-28...
[1 reply] : First, this is a good situation to make use of classes, with appropria... (by jaded7)
inheritence in classes
 
Hi everyone can someone please help me with this code problem is: (Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to repre...
[1 reply] : http://www.cppforschool.com/project/banking-system-project.html (by MUHAMMAD12)
last word of string ignored
 
Hi all, I have this code: #include <iostream> #include <string> #include <vector> std::vector < std::string > MakeVector( std::string str ); ...
[2 replies] Last: Thanks! :) (by Fransje)
by pnutz
Class Confusion
 
Hello! I need help that regarding classes. I have a program that enrolls and computes the salary of the employees. I've created a class named salary_computatio...
[4 replies] Last: I got too excited to try your previous suggestion that I forgot to mod... (by pnutz)
Creating a vector<string> from a sentence
 
My program is supposed to: Prompt user to enter a sentence Read this sentence into a string Pass the string to a function that separates each word Each wo...
[4 replies] Last: on line 10: There's a space required to store the word. No space no wo... (by coder777)
* shaped diamond program
 
I am making a program which prints diamond shaped asterick signs.... Having 1 error on using namespace std; Can any 1 tell where I am wrong???? #include <i...
[2 replies] Last: Removed the directive and all set... Thanks alot. (by princemoon)
Help: Finding the missing number in the array.
 
I'm trying to write a program where in you input 9 numbers from 1-10, then it determines the missing number. Here's my code. It has a lot of errors. Help me do ...
[6 replies] Last: This is the final code I came up with and it has worked for me: #incl... (by Adijunn)
by RonBow
Minesweeper
 
Having trouble completing this minesweeper program #include <iostream> #include <iomanip> #include <string> using namespace std; // Declare global constant...
[4 replies] Last: I've tried but im truly lost and just dont know where to begin. going ... (by RonBow)
Pig Latin Edit
 
I'm trying to get user entered sentence and translate it to Pig Latin. How should I edit my code? Constants I have to take the first letter and place in back th...
[2 replies] Last: You shouldn't have two separate conversion functions, at least not fun... (by cire)
How do I create a variable that chooses a random number each time I use it.
 
Hello. Currently I am working on a text based rpg game in C++. During an encounter I want a monster to give damage in between 1 and 4. Then I want this number t...
[14 replies] Last: I believe on the very top of your post there is a button that says, "S... (by HellfireXP)
Game Of Life, Mostly Complete Need help
 
xxxx
[1 reply] : Have you considered using a debugger? (by Zhuge)
primary expression error.. please help..
 
Please help me. I'm stuck. The coding seems ok. I'm using external file which is displaymenu.cpp and the main is another file. so included it in the main file. ...
[5 replies] Last: Here's some thoughts: You could just declare the dsiplaymenu function... (by TheIdeasMan)
by Maos
cin.getline() OR strcmp() causing errors
 
Hello, I am in need of some guidance regarding, yes, homework. I have to make a program that reads airline info from a file, sorts it into an array, and dis...
[2 replies] Last: strcmp uses the <cstring> header file NAME_SIZE = 20; and flightType... (by Maos)
by EJonah
stuck on "undeclared functions" & "for loops"
 
Right now this is the program I created: //include libraries #include <iostream> #include <cmath> #include <iomanip> using namespace std; //introduces na...
[1 reply] : 1. Change the printdata method with the signature of void printdata (f... (by meeram)
by sirc89
Opening a file
 
How do I change the initial part of the program where it doesn't prompt a user to input the path of the text file they want to read, but automatically opens a t...
[1 reply] : Read my answer to this guys post... it should help you too: http://ww... (by HellfireXP)
Encrypt and decrypt a text
 
How can i do this program... i have tried many codes but it does not work any ideas? I need help Write a program that implements the Caesar cipher. The Caes...
[1 reply] : Recommend you use the ASCII character codes for this (A-Z are numbers ... (by HellfireXP)
by sirc89
Strings and Operands
 
I need help figuring out how to make this program work. I created this program in order to read the number of words of any text file inputted. The last function...
[3 replies] Last: My gosh you're right. And of course it does. :-P Having a 3am moment... (by MrHutch)
by cal1j
Removing Punctuation and Spaces in an array
 
Hi. I am a C++ programming Newbie working on a homework (ahead of schedule, yes!!!) for my C++ intro class. I am using MS Visual C++ in Windows 7 for class but ...
[4 replies] Last: i = 0 num = 0 iteration 1 i = 0 num = 0 2 i = 1 ... (by jlillie89)
std::out_of_range error
 
nvm
[no replies]
please help cant get program to work!
 
trying to reverse inputted number then do operation depending on choice of menu and display! #include<stdio.h> #include<ctype.h> int main(void) { i...
[5 replies] Last: The code tags format the code properly (preserves the indenting) makin... (by TheIdeasMan)
November 2012 Pages: 1... 1112131415... 75
  Archived months: [oct2012] [dec2012]

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