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 Spotted In Places With No Error.
 
Write your question here. Error Spotted In Places With No Error. Expect a ';' at line 26. ...
[no replies]
functions not working
 
Hello again, i made some progress with this code, now the problem i face is everything works fine e...
[no replies]
How to update the data in txt file
 
Im trying to update the data but I am not sure on how to update it. ofstream myfile; myfile.o...
[4 replies] Last: I tried my best on find the resources and do the code. However I'm sti... (by rhap123)
Help With Averaging Code
 
Write your question here. Could someone help me figure out why the program has an initialized local...
[3 replies] Last: Hello Andy, Thanks for the advice on variables, garbage values, and i... (by LegalWeasel)
Is a class the answer to my function mess?
 
I periodically write code for embedded microcontrollers. Most of it is pretty simple. I've gotten ...
[5 replies] Last: To make Jonnin's suggestion fully match your original post, you'd add ... (by dhayden)
1D array problem
 
Hi Everyone! i have a small program here,i let the user choose the size of the 1D array and it's el...
[1 reply] : Change line 5 to int a ; and that should keep you going for a wh... (by lastchance)
Taking output of pgm file format to construct frequncy table
 
here I am reading a PGM format I want to construct a frequency table for Huffman compression and dec...
[3 replies] Last: > i'm new to C++ and data structure Perhaps you should start by writin... (by salem c)
by kenken
While loop help
 
Would someone please help me understand why the following codes produce different outcomes for the v...
[3 replies] Last: Both sum AND number wrap around when entering -1. std::cin goes int... (by Furry Guy)
Counting vowels from input stream
 
Hi, trying to write a helper function to count the amount of each vowel present in a given text file...
[4 replies] Last: Yep, I tried adding ch = tolower(ch); and that did the trick! Thank... (by dakotad8218)
main menu and sub menu
 
Hey. I'm trying to have two menu's in this program,a main menu and multiple sub menu's.. but the thi...
[6 replies] Last: Hello FoaaD2506, Going over your program. Some things I have changed:... (by Handy Andy)
Cards Decks and classes
 
I am struggling with getting my playing cards classes to work as I would like. I can create 52 cards...
[9 replies] Last: @jamesfarrow I see you have addopted 2 approaches in your code, one fr... (by malibor)
Infinite loop
 
I want to get an user input as age and add 100 to it and print out how old they will be every year. ...
[6 replies] Last: ^^^ Note that any loop can do anything. Its the one that is most rea... (by jonnin)
How do I update the data without using void/struct
 
Im having problem on how to update the data in .txt file without using void() from the beginning. Ju...
[3 replies] Last: The thing that's hard to understand about files is that when you want ... (by dhayden)
Making sure there is a certain character in string
 
Hello, how do I make sure the input that I get ends with a full stop '.' using do-while? Example: He...
[5 replies] Last: Hello mermaidly, My bad. After seeing salem c's first reply I reali... (by Handy Andy)
print function for array
 
hello,I have this program which reads elements from the user for an array of . and i made function...
[8 replies] Last: oh it was that easy lol i'm sorry, i was having an error about calling... (by FoaaD2506)
To Write data in a spectic format
 
Hello guys am working on a c++ project that search for Student id in the source file,if a match is f...
[4 replies] Last: Thanks Andy...........i will research more on std::setw() it might wo... (by Chewe Kennedy)
Bubble Sort
 
Hi all! I'm working on a project with a couple of my buddies. We are almost done with the code for o...
[2 replies] Last: Andy's right. Your bubble sort needs to be something like this: enu... (by dutch)
Stuck at do while loop
 
I am currently having trouble on doing the do while loop. I am not sure why since I have been foll...
[9 replies] Last: Hello rhap123, Watch your indenting it is terrible. do { std::... (by Handy Andy)
Pages: 123... 18
  Archived months: [apr2020]