The Wayback Machine - https://web.archive.org/web/20200422172039/http://cplusplus.com/forum/beginner/

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)
by samaka
classes
 
to a typical game of pairs card game how many classes would i initially need to for the whole thing ...
[4 replies] Last: how are you representing a 'hand' ? (by jonnin)
How do I store a user input into an array?
 
How do I store a user input into an array? Please try to explain simply as I've only just begun lear...
[3 replies] Last: Getting user input that includes whitespace requires using getline. F... (by Furry Guy)
by rytisz
Reading sentences from file with ignore()
 
i heed some help with ignore(). I have a text file with three lines of text: AMBITIONI DEDISSE SCR...
[2 replies] Last: This seems to work: // Example program #include <iostream> #include ... (by TheToaster)
Sorting Arrays
 
I have to make an array with 20 double digit numbers in it randomly then bubble sort them into a dif...
[2 replies] Last: Hello Shawske, I keep getting errors when I am trying to run it ... (by Handy Andy)
by samaka
User Defined Functions
 
string checker, that is passed a string and a character, and checks if the character is within the ...
[6 replies] Last: thanks everone i got the idea :) (by samaka)
Struggling With OOP and Vectors
 
Hi, I currently know a bit of C, and i thought as I am off work on furlough I will learn some C++...
[9 replies] Last: Thanks dhayden, It will take me a while to work through it but i will... (by RocketMan46)
A transform_iterator implementation
 
I came across the following code #include <memory> #include <iterator> #include <typeindex> ...
[2 replies] Last: Huh, I've never head of this SCARY code thing. Is this a popular idiom... (by TheToaster)
by zajac
C++ Why does this while loop always return 0 for min? How do I fix it?
 
Write your question here. #include <iostream> using namespace std; int main(){ i...
[3 replies] Last: You set the min from the first input. You don't set the max from the f... (by keskiverto)
c++ change console font size
 
i want change console font size, i try codes from internet but not work add latest test #inc...
[9 replies] Last: I already did it https://c-for-dummies.com/blog/?p=2159 but not work (by kryganas)
Constructor
 
I wanna look at Constructor, i have reade it on Google. "In C++, whenever an object of a class is c...
[3 replies] Last: Yes. Note that T::T() : U( 42 ) {} is valid too, if it makes sense ... (by keskiverto)
Return value in infinite loop
 
Hello! I'm currently trying to work with some image processing. I'm using a function that streams ...
[2 replies] Last: Maybe a callback might be an option. template<class Callback> some_v... (by Learner2)
by Zanza
ASCII Art with couts?
 
My teacher is getting an error with my code somehow using codeblocks on linux and he believes that i...
[12 replies] Last: Nah, this is getting too complicated for your professor. Tell him “... (by Duthomhas)
Need help reducing negative fraction, also using istream
 
My problem consists of attempting to reduce a mixed fraction and not reducing the positive mixed fra...
[4 replies] Last: Before you worry about reading from a file, fix your basic test. > Fr... (by salem c)
unable to define array size via function parameter
 
hi, im trying to define the size of an array through a const function parameter, but it returns an e...
[5 replies] Last: thank you so much guys, I learned a lot from you (by valanche)
using getline to grab 2 seperate arrays
 
I have a txt file that looks like blah 324342 blah 23423 blah 23423232 ect.. And I am tryi...
[9 replies] Last: Usually it is just because the professor does not know the modern lang... (by Duthomhas)
Struggling with coding for a assignment question
 
Write a program that will create userids for email addresses of a company. Names of employees will b...
[7 replies] Last: You don't need to use sstream. I only used sstream to give you an exam... (by TheToaster)
by hbcpp
C++ GUI
 
I plan to begin learning C++ GUI programming soon and I have decide to learn both wxWidgets and QT. ...
[1 reply] : A lot of Qt’s framework was developed before C++ had a standard libr... (by Duthomhas)
Convert 24 hour format to 12 hour AM/PM
 
Hello everyone, hope you are all safe and sound. I am running a simple program using 3 functions to...
[5 replies] Last: Alright, the code works as I want and it works nicely. Thank you for ... (by JohnnyJoestar21)
Pages: 123... 28