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)
What are some design patterns that appear in your code often?
 
Hello, I wanted to ask this question because I think it's interesting to hear about other people's e...
[no replies]
Press any key continue automatically
 
Hello everyone, I will be very happy if you can help me for a problem I face with. I have written ...
[5 replies] Last: Thank you so much @Handy Andy and @Ganado . The problem has been solve... (by learner999)
My structure file only displays the last line of my fstream files. I also question abo
 
Hey all, i want to finish up my code without changing much since my teacher requires us to keep it i...
[18 replies] Last: In ShowWidgets, you need to move s_ptr++ to AFTER the "}". (move line... (by doug4)
C++ is not right (1,2)
 
HI People, I am just learning C++. I have a couple of books that I am learning from. I think there i...
[24 replies] Last: Please post your code again using code tags. We have no idea what lin... (by doug4)
using FOR issues!
 
Hello fellow geeks! So, i need help with a bit of an assignment. i need to get the following outp...
[6 replies] Last: #include <iostream> int main() { for ( int i = 9; i; i--) std::cou... (by lastchance)
int Array[]
 
I tried a lot of things but failed. int student ; The number 3, how can I ask user to input ther...
[15 replies] Last: Thanks a lot, everyone. (by HelpMeBro)
assistance with Logical NOT Operator
 
I am new to c++ and I am not sure in what situation should I use the ! not operator? I know what it ...
[1 reply] : Let's say you have a function that returns a bool. bool foo(); No,... (by doug4)
function Prototypes First timer
 
Wondering if I have this setup correctly? Supposed to create a prototype and define it. Also not su...
[7 replies] Last: Thanks jonnin after you said that I remember using that way before and... (by briancb2004)
Connect main.cpp, functions.h and functions.cpp
 
Hello, I want my functions to be declared in functions.h, I want their bodies to be in functions.cpp...
[1 reply] : $ g++ -c main.cpp $ g++ -c functions.cpp $ g++ main.o functions.o -o ... (by ne555)
Homework help
 
My program is supposed to make a mixed fraction. for example, the fraction 7/2 should be outputted a...
[8 replies] Last: The display question raised at the start is solved thus: #include <... (by againtry)
Convert an array, so that odd numbers are in the first half, even numbers on the second half.
 
Example: Input: 8 1 2 3 4 5 6 7 8 Output: 1 3 5 7 2 4 6 8 It is necessary to use pointers...
[2 replies] Last: Decidedly not using pointers, but use a sort compare function that pre... (by salem c)
Cannot convert '__gnu_cxx::_alloc_traits<std::allocator<std::_cxxll:basic_string<char> (1,2,3)
 
what does this error mean at line 96? // Program to read a CSV file containing company items...
[43 replies] Last: Thank you i appreciate it (by FanOfThe49ers)
python-cpp for loop
 
How to write the below python for loop //Here the obj is the list of objects for i, j in ...
[3 replies] Last: Consecutive elements? In that case: #include <iostream> int main() {... (by keskiverto)
ascending&descending order
 
hey lads, I am stuck cause of my lack of attention I guess, the code below works fine for displa...
[3 replies] Last: @salem c - thanks for your advice, I will keep in mind. @seeplus I a... (by MaxGreen)
by esteef
HW help beginners
 
So I am a beginner. This is my current HW question. Write a loop that reads positive integers fro...
[4 replies] Last: Yes andy you are correct i will do that from now. Seeplus thank you ... (by esteef)
This bad, bad printf()
 
I had heard that she's a bad girl - but I did not expect such unbridled behavior :-)) #include <s...
[4 replies] Last: May be you are right coder777. Its cpp.sh site problem. They'll fix it... (by Emil Enchev)
Invalid operands for binary expressions error
 
I am following a Ray Tracing series to create a custom ray tracer with C++. There are several custom...
[5 replies] Last: This is the tutorial https://raytracing.github.io/books/RayTracingIn... (by djcampbell)
Cannot convert '__gnu_cxx::_alloc_traits<std::allocator<std::_cxxll:basic_string<char>
 
what does this error mean at line 96? // Program to read a CSV file containing company items...
[3 replies] Last: @FanOfThe49ers, This is the same bunch of problems as your previous t... (by Furry Guy)
Pages: 123... 19
  Archived months: [aug2020]