Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duoas)
Learning functions and need some help...
 
Hello. I am getting into functions in my computer science class and have an assignment that requires...
[2 replies] Last: double totalBill(double payRate, double consultTime, double totalInco... (by mobotus)
A bunch of compiling errors on my program?
 
Hello. I have a basic program I am trying to build that is due tomorrow, which is just a basic emplo...
[4 replies] Last: I'm still trying to start from scratch with the if and else statements... (by JustMcCollum)
Accessing members of another class
 
Hello. I am trying to write a function (setxy in class A) in one class to access members (function s...
[3 replies] Last: Thanks a lot. It works now. I've spent hours on this stupid mistake. (by carlossentino)
Really need help on finding length in text file.
 
1. Find the largest word on the list, print it, and print it's length (the str.length() function wil...
[1 reply] : Well, reading the text file isn't too hard. The issue is parsing- you ... (by Ispil)
Copying text file to struct array
 
The textfile looks liket his: Martin Smith/ 22 2.2 Austin Clinton/ 18 3.1 Johnson/ 19 2.9 Magg...
[6 replies] Last: Ok can you answer my previous question (by alex067)
How to change the size of an array based on input?
 
I'm wondering what the easiest way to shorten an array based on user input would be? My program all...
[11 replies] Last: Wow, so I figured out that my problem was in a different part of my co... (by Ascendant78)
by Sh0es
Getting chars from cin.
 
I'm trying to extract characters from a file in a project I'm working on. The only problem is that t...
[no replies]
Function to read data types, help!
 
I have to create a program which asks the user (through a function) to enter data depending on the d...
[no replies]
by mjpin1
Guessing game code won't work
 
I am very new at programming and i am trying to make a guessing game. They are to guess a number be...
[11 replies] Last: Okay i understand now. Thanks everyone for all your help! (by mjpin1)
Trying to Search a Character Array for a word.
 
Hello,I'm trying to create a function that will accept a character array that the user enters a word...
[no replies]
My code will compile, but it says I have not initialized my variables
 
As I said in the header this code will compile, yet it puts out erroneous results, and says the "who...
[1 reply] : Line 14. Line 13 you declare variables with no assignment then in lin... (by mobotus)
compiler error "left operand must be l-value"
 
I am having problems compiling this program. line 29 causes the error "left operand must be l-value"...
[2 replies] Last: thank you very much. Also, I apologize for the lack of whitespace (noo... (by mojorising484)
Exceptions and what()
 
When I run the below code, the runErr.what() does not print anything. I have no clue why. Also, some...
[7 replies] Last: If you are using an IDE, make sure you are running the correct code (by Smac89)
Program will not output correctly
 
My assignment was to write a program that will take in an ISBN number with dashes and check to see i...
[no replies]
Need help on my program I can't get it to work properly.
 
I am having an issue getting my program to output correctly, and having the loop repeat. The progra...
[6 replies] Last: Sorry for the late reply, but I ended up getting the program to functi... (by titan93)
Need a function to do an output
 
Want to do a function Linearsearch and need to know how to search on age and print it. // Bu...
[6 replies] Last: Yes, I got it to work. Thank you! /P (by patriic48)
Which option ?
 
Hello :) If I have a string like "ngc6910" and have converted the 6910 part to an int using the sto...
[1 reply] : I would prefer std::to_string because it's less messy. (by Peter87)
Want to change a char in a vector of chars
 
I don´t know what I´m doing wrong in the code. Need some help. #include <iostream> #inclu...
[6 replies] Last: @patriic48 - Your if statement inside your last for loop is wrong. Wh... (by art1986)
Pages: 123... 102
  Archived months: [aug2014]