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)
HTTP client GET request
 
I'm trying to make a HTTP client, to send commands to a radio software over HTTP via localhost if ...
[5 replies] Last: that is not so bad. that error means it can't find the function... at... (by jonnin)
trying to make a simple console text editor
 
hi, i'm new here, and i have been trying to make a text editor on c++ since yesterday, because i'm h...
[8 replies] Last: You don't know how lucky you are now - to have a screen editor. Way ba... (by seeplus)
c++ beginner - input name using struct
 
This is the description of the practise im doing. Write a program that reads peoples’ names and a...
[1 reply] : Perhaps: #include <iostream> #include <iomanip> #include <cstring> ... (by seeplus)
How exactly would you make a wordcount program?
 
This is proving to be much more difficult than I thought. It has to count words by spaces and senten...
[4 replies] Last: Possibly: #include <iostream> #include <cstring> #include <cctype> ... (by seeplus)
Fix for my code
 
Hi, if my input is 3 3 3 * output will be 3***3***3***3 However there should be an exception where ...
[5 replies] Last: fill is a std::string, sequence of char s, in the example it is crea... (by The Grey Wolf)
by Deng
How to wait in C++?
 
Is there a simple way to code a one-second "pause"? Just like time.sleep(1) in Python: import tim...
[4 replies] Last: Thanks. Exactly what I want it to be! (by Deng)
by Deng
fstream NOT functioning in Xcode
 
When I wrote the following code on my iMac Xcode, it does not write anything into the file "data.txt...
[10 replies] Last: Get that, thanks! (by Deng)
exec + fork
 
What will be the result of this code? Explain this line (exec ("/usr/bin/gedit")) int main ...
[4 replies] Last: @ne555 what you mean?? (by ssssssss)
by FayZ
Appending to a doubly linked list
 
I'm trying to append an array of characters to a doubly linked list and this is what I have so far. ...
[3 replies] Last: draw a diagram head is your first element head->next is your second el... (by ne555)
Which text editor to choose
 
Hello everyone, I am new to c ++ and wanted to know which text editor would be the best match. I mai...
[7 replies] Last: > GNU Emacs user here yes, but what editor. moved from vim to neovim... (by ne555)
by scaar
Shared pointer and copy constructor
 
Hello to everyone. I would like to create a general function that is able to print some info that co...
[4 replies] Last: Rather than having ExportManager::PrintElement() figure out what to do... (by dhayden)
I don't know why this does not run successfully.
 
My code is to determine weather a person is available by his/her age. 6<=age<=10 means qualified. Bu...
[8 replies] Last: sorry for that, I copy/pasted the bad condition without noting :( (by jonnin)
I am losing my mind
 
This is so basic yet i cant seem to get it and it is frustrating me Basically I need to input the wo...
[3 replies] Last: #include <iostream> int main() { long long int worldPop {}, countr... (by seeplus)
by jonnin
21312
 
set up a boolean, eg bool isvalid{true}; //until proven otherwise, the value is valid.. then loop un...
[3 replies] Last: The question was essentially, "How do I handle user input during an in... (by mbozzi)
Mismatched file types for std::getline
 
I'm trying some basic C++ file stuff. I've created a small class with some functions to help read se...
[7 replies] Last: The default delim for .getline() is '\n' - same as for the standalone ... (by seeplus)
How to add input string at the final output
 
If my input is 10 4 | - It should print out |----|----|----|----|----|----|----|----|----|----| ...
[14 replies] Last: Yeah - using s for string requires using namespace std::string_literal... (by seeplus)
bool function checks and returns if the (sub) trees are completely identical
 
Im trying to create a bool function : The function checks and returns if the (sub) trees are complet...
[4 replies] Last: the feedback seems picky... the best way to do this seems like setting... (by jonnin)
by nosol6
Dynamic Array Allocating Function
 
I'm currently in the process of writing up a function that allocates two arrays of 100 integers each...
[2 replies] Last: @nosol6 In your first snippet, line 15 works, but would more normally... (by MikeyBoy)
Pages: 123... 9
  Archived months: [jul2021]