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 Duthomhas)
this pointer
 
i expect the output to be the person's name and his pay. #include<iostream> #include<string.h> ...
[1 reply] : sales::outdata() is never called. (by helios)
Plinko w/Functions
 
Can someone help me refactor my original code to *include functions*. It's a Plinko simulator. I am ...
[1 reply] : These are the instructions: Part 1 - Refactoring Computing the am... (by heythere17)
i merged files using string but error in line 13
 
error: F:\c++projects\printmerge\printmergefiles.cpp|13|error: no matching function for call to 'st...
[6 replies] Last: yaaaay it works perfectly now. #include<iostream> #include<fstream> ... (by suyashsing234)
Returning local automatic objects from functions (1,2)
 
I'm reading through a beginner C++ course and I got to a place dealing with returning objects from f...
[32 replies] Last: OK, the only valid option for me where I am is a portfolio. Internshi... (by cristian c)
If statements and functions
 
Now my assignment is to write a C++ program that prompts user to enter first character of a square o...
[2 replies] Last: here.For some reason area of triangle always comes to be zero #inclu... (by suyashsing234)
by Ch1156
How to use variables in other class members? (1,2)
 
So I decided to write a game and use classes to better strengthen my class knowledge, and it was goi...
[31 replies] Last: You can use it this way: main.cpp: #include <iostream> #include <li... (by Enoizat)
by tagerR
What's wrong with my code
 
title #include <iostream> using namespace std int main () { cout << "Olá Mundo!\n"; re...
[3 replies] Last: are you using visual studio? If so thats because it will be looking fo... (by heintzman)
c++
 
i wrote a code but take a false result. how i do for its run. i have to use function in class. it...
[2 replies] Last: thanks for help but " i have to use function in class." (by conquerorbh)
by dubley
compare the sizes of two boxes
 
I am trying to compare the sizes of two boxes. I am not sure I am going about this the right way but...
[2 replies] Last: Hello, my aim is to output the maker name of the largest box. So for e... (by dubley)
Extracting the amount of integers that contain the number "5" from a given range.
 
I am writing a program for a homework assignment in which the user is promped for a minimum and maxi...
[6 replies] Last: Thank you so much for all your replys! There is a lot to work with h... (by cyberdrone)
pointers to pointers
 
Hi guys I have a similar thread opened up a little while back but this is a question I never asked a...
[2 replies] Last: *p1 is the p2. Therefore cout << *p1 means cout << p2 The p2 is a cha... (by keskiverto)
by Ndutta
Reading from a txt file, saving it into a parallel array and predicting the future date
 
Hey, so as part of an assignment, I have to write a program that "predicts the date, given a day" so...
[2 replies] Last: Thank you Handy Andy. I'm still trying to figure it out, but I hope I'... (by Ndutta)
Can't get my return values to properly work.
 
Hello There, I am a new Computer Science student and for our first project, we are supposed to wri...
[5 replies] Last: Thank You So Much! I don't have much time to work on it right now. I h... (by Mjimmie1)
vector not returning expected value
 
Good day, I am trying to use vectors and classes to write a card class an expand my experience wi...
[3 replies] Last: Dang its always something simple I'm just not seeing, thank you! (by heintzman)
by MOMO1
why is my program crashing
 
Hi guys so I stored a file into an array of char pointer and allocated memory to it and right now Im...
[2 replies] Last: Ah I see, yea I didnt realize that my file had words more than 16 char... (by MOMO1)
line of code giving me trouble
 
hi guys I have come across a line of code while studying that is giving me trouble this is the block...
[11 replies] Last: so for example a = some memory address that holds the string "one"? ... (by Chervil)
This is a part o a bigger program. The display function is printing the last record twice. Can anyone point out my error?
 
#include<iostream> #include<fstream> #include<stdio.h> #include<iomanip> #include<string.h> usi...
[4 replies] Last: Hello riona riri, Chervil has very good suggestions here. I loaded u... (by Handy Andy)
fault in do while
 
Code does not what i wish, who can help me. The code below asks you first for an amount you want to...
[3 replies] Last: thank you! First faults finded. but now its still not works. (by murr0010)
Pages: 123... 43
  Archived months: [aug2017]