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)
error in data.txt file
 
How to read data.txt file by read each single word. for example, Eddy Alfaro Gyrobifastigium Size:...
[2 replies] Last: Record 1 Eddy Alfaro Gyrobifastigium Size: 1546 Qty: 78 ----------... (by hein harry thu)
Trying to Track an Infinite Loop (Input Validation)
 
I had a working error validation check in my first program, it went like this: void gpa() { /...
[4 replies] Last: If your program contains only formatted input, i.e., std;:cin >> aVar... (by jlb)
Filestream open mode
 
If you intend to open an fstream for output in ios::app mode, do you really need to also specify ios...
[5 replies] Last: Hello TheToaster, Sorry for the delay. I have not been feeling well. ... (by Handy Andy)
Pre-compiled headers?
 
This is an idle question , so don’t go killing yourself over it if you do stuff like that. If ...
[2 replies] Last: Thanks! (by highwayman)
How to find the largest and use the smaller numbers?
 
Update: Updated the code to what I have currently. The only thing I need help with is figuring out h...
[10 replies] Last: Hello CodeNovice01, Sorry for the delay. When I say your latest code... (by Handy Andy)
Need Help
 
Write your question here. There are some problem going on in the definition of allocateData2Dby...
[4 replies] Last: Now, the "use std::vector" lecture. std::vector lets you resize an ar... (by Ganado)
Help me solve this please :(
 
Hey can someone help me so solve this please in c++ ? :( Given natural numbers m and n. Find all...
[9 replies] Last: @jonnin, the WHOLE of n appears at the back of n^2, not just the last ... (by lastchance)
by Avex
Command Line Calculator - Save Results in a Text File
 
Hello! For a project, I am supposed to create a program that allows you to make simple calculations ...
[no replies]
Templates: Return different types of data.
 
Hello! I was reading the following tutorial and I have a question. http://www.cplusplus.com/doc/ol...
[6 replies] Last: @Ganado, thank you anyway for reading my code. (by Enoizat)
Rewrite recursive algorithm in iterative way
 
#include <stdio.h> #include <stdlib.h> #include <time.h> struct Node { int data; ...
[2 replies] Last: I know that it is C like code but i would like to know how to replace... (by nowy20180820)
Implementing A Reverse Stack
 
I'm trying to implement a reverse stack where items are inserted at the bottom and popped at the bot...
[2 replies] Last: What you're building is called a queue or a FIFO queue. FIFO stands fo... (by dhayden)
Math adds up but function does not work correctly
 
Code works with first 4 digit and passcode but does not if im trying to get second 4 digit. #in...
[3 replies] Last: you need to actually read each line, even if you don't use it, for tex... (by jonnin)
Error: terminate called after throwing an instance of 'char const*'
 
I would like to write a list in .txt, but I understood this problem. Other problem is the function "...
[6 replies] Last: Ok, I understood, maybe I need to change the "while" for "while(!Perco... (by victorio)
Deleting nodes in a linked list with recursion
 
Thanks in advance for your assistance! Problem: I am learning how to use recursion in my code. Th...
[2 replies] Last: Aha! Thank you! (by jrbobdobbs83)
FIFO queue demonstration
 
Hi all, Im having some trouble figuring out how to complete a assignment in C++ involving queue, arr...
[9 replies] Last: @JLBorges hah, thanks for this. I think I understand the whole process... (by wirelesskill)
Random number generator in sets
 
I'm trying to do a random number generator inside of a set,but need some help. It works somewhat bec...
[4 replies] Last: I think <random> has unique number options. its rand mod 25 so anothe... (by jonnin)
How do you persist data for next execution of the program?
 
An application creates a file (whose name contains the date) the start of each day and periodicall...
[5 replies] Last: yea I was mostly kidding. Put it in a little file, and if the user d... (by jonnin)
by Bopaki
Program compiles OK! but bombs out when I run it
 
.Cannot work out what is the problem here: #include<iostream> #include<cassert> using name...
[4 replies] Last: It works!!!! could not believe it...... here is what I have edited: ... (by Bopaki)
Pages: 123... 26
  Archived months: [aug2019]