Beginners - November 2012 (Page 66)

main() and jousting project
 
I'm having trouble writing a main() function for my program... It needs to include 1. ask 10 questi...
[4 replies] Last: The () of a function call are the parameters you are passing to that f... (by Raezzor)
Array Problem
 
Hello, I have been scouring the forums and have not found a solution to my problem. OK here it is....
[2 replies] Last: Thank you so much. I have been going over this all weekend. I did not ... (by InvaderGUI)
Using private class members in a friend function
 
Hi, all. I'm trying to overload the << operator as a friend function in a class definition I'm writ...
[1 reply] : I don't see a problem. I had no problems compiling it with VS2010. (by AbstractionAnon)
by dday9
New to C++
 
I am new to C++, but not new to programming. I've very proficient in visual basic.net and I can read...
[1 reply] : Go to xoax.net. This website has C++ tutorials, Java tutorials, PHP t... (by closed account EAUX92yv)
a function that reads a text file
 
Hi there I'm trying to create a function that will get a text file and return a vector of strings...
[9 replies] Last: Hey thanks for the help! My problem was I put the txt file in the same... (by achieven)
defining identifiers
 
How do you define an identifier. That is all i want to know. Thank you.
[1 reply] : int identifier; Of coruse, you can use any defined type instead... (by AbstractionAnon)
Combining mortgage .cpp with Banking .cpp
 
I have two applications that complete different activities, one is a simple banking program and the ...
[1 reply] : Here is the mortgage application as discussed above #include <iostrea... (by DavidBrent)
Term does not evaluate to a function taking 1 arguments??
 
Hello, I have prepared a code for my homework assignment in my intro to programming class. I had ...
[3 replies] Last: Not only what the above have stated, but Password is declared as type ... (by Raezzor)
by Gomboo
i cant find my mistake .....pls check it
 
#include<conio.h> #include<iostream> #include<iomanip> #include<string> using namespace std; cl...
[4 replies] Last: You still did not place it in code brackets and did not tell what the ... (by ryancb06)
Function that doesn't allow user inputted negative numbers
 
I'm trying to work a function into my program that won't allow the user to input a negative number. ...
[5 replies] Last: First, modify get_non_negative() to accept and return a non-negative... (by JLBorges)
finding gcd
 
I have a code that finds the gcd of two numbers, I know it works, but dont understand how it is fi...
[2 replies] Last: http://en.wikipedia.org/wiki/Euclidean_algorithm (by JLBorges)
Function for getting player names not working, suggestions?
 
I am trying to write a game(for my class) that can have between 1 to 4 players. I use a string for e...
[3 replies] Last: I figured it out. A \n remained in the input stream from a previous in... (by drakescale)
Putting a sentence into a 2D array
 
I want to input a sentence in exactly 5 words. The sentence splits into strings. These strings will ...
[no replies]
Checking the file
 
Hello, I'm having difficulties trying to think of a way to check if a file is empty or not. I have ...
[8 replies] Last: I don't see how you rewrote the if. It looks exactly the same. Yo... (by AbstractionAnon)
by nexos
need help with fractions
 
......I need help to shorten my fractins.......here is my code #include <iostream> #include <c...
[no replies]
Extern with Class Objects
 
I get the error "error C2512: 'Button' : no appropriate default constructor available." I've tried i...
[2 replies] Last: You haven't show us the declaration for your Button class. At lin... (by AbstractionAnon)
file input of mixed types
 
I am writing a program where I need to handle an inventory file of mixed types integers and strings....
[6 replies] Last: int main() { string line; ifstream infile; int num, ... (by AaronTrahan)
fstream and string getline problem
 
Having something of a problem with an exercise. The program is meant to read in a series of names an...
[6 replies] Last: Yup, that's exactly what my txt file looks like, with the first line b... (by Raezzor)
Calculations coming out wrong
 
I am implementing functions from a header file I have been given, and I can't figure out why the num...
[1 reply] : Square::Square(float initialDim){ initialDim=dimension; } If you ... (by cire)
Cin gets ignored ?
 
Same story again. In the void nfile() and in ofile(), the program gives the output but ignores the i...
[1 reply] : http://www.cplusplus.com/forum/articles/6046/ You need to clear the i... (by Moschops)
November 2012 Pages: 1... 6465666768... 75
  Archived months: [oct2012] [dec2012]

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