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)
How to arrange and find average, max and min values in 2D array?
 
Hello, i have been assigned a coding exercise to use a 2d array to make a CPP program that stores ra...
[6 replies] Last: thanks very much, it worked! (by Scayron)
Memory allocation
 
Hello, I am writing a project that will read from an assortment of text files that create a menu a...
[3 replies] Last: Clever approach reading your menus from files. However, there are seve... (by AbstractionAnon)
by akeilo
Help with functions
 
I need help figuring out why it won't output my last function. #include <iostream> #include...
[1 reply] : Where do you call report()? (by AbstractionAnon)
by abuh
please help me
 
Write your question here. i want to Update the program to add a menu for choosing the operation (Se...
[14 replies] Last: ...I am not entirely sure what you mean...? (by agent max)
How to use 2D Arrays with different types?
 
I have this 2D array code that I don't really understand but can somebody tell me how to use both di...
[5 replies] Last: Thanks everyone for the help I will read through in the morning. If th... (by domweng)
by Slyde
Is there a better way?
 
I have a some if statements nested and was wondering if there's a better way to handle this. What I...
[5 replies] Last: yes. 0, 1, 2 is 3 things. (by jonnin)
int and double help?
 
Trying to print out the "totalVotes" as an int and the "votePerc" as a double. My issue is if I keep...
[1 reply] : for(int i = 0; i < ARRAY_SIZE; i++) { votePerc = (tab... (by Ganado)
by Slyde
getline falling through
 
I have this bit of code that's suppose to capture a string entry: void setTitle() { string ...
[5 replies] Last: @Handy Andy & seeplus: Thanks for the insight. It put clarity to a h... (by Slyde)
Array Error
 
So I'm writing code that will prompt a user for the size they desire for an array, then I have to cr...
[15 replies] Last: If you can compile it, and run it without it crashing, that is good ev... (by Ganado)
Arrays with Filestream
 
This is what I am trying to accomplish C++ HW - Files and Arrays Create two 10-element arrays ...
[7 replies] Last: It finally hit me. Andy (by Handy Andy)
by Horror
changeing each lowercase letter to uppercase
 
I have to write a program that reads strings of text from a datafile called “data.txt”, changes ...
[3 replies] Last: Using a queue and a stack to test that a word is a palindrome is far m... (by seeplus)
Can you #define values for a header in another file?
 
EDIT : Sorry for the confusion. Let me rephrase what I meant to ask: Given the code below, where s...
[5 replies] Last: You normally want to set those kinds of configuration macros in the co... (by helios)
Write to Serial Port
 
Greetings! I am still learning the overall structure of C++, plus I am at a point where in order ...
[4 replies] Last: @Nico I don't see anything in your try block that would throw exceptio... (by mbozzi)
How to fix "expression must have integral or unscoped enum type"
 
I have the following code and trying to perform a simple calculation: #include <cmath> #include...
[7 replies] Last: I was under the impression that I can use memset as an initialization... (by Ganado)
Operator not declared in this scope
 
Hey, I have been trying to compile a source file in OpenFOAM which uses the C++ syntax. When I run t...
[3 replies] Last: Hey, thanks for that. (by Thugfreak)
std::min function help
 
I have a simple question really I am trying to find the minimum between two values and use it as ...
[8 replies] Last: @lastchance If D is diffusivity in your code, what is k? Normally suc... (by JamieAl)
Stack
 
The question is : "Make a program for creating of Stack S, after this to set N-th from the bottom el...
[12 replies] Last: but, its not a hard coded problem, that is just the example. someth... (by jonnin)
Not in FIle
 
I am following along with a tutorial that is creating a bitmap file and writing fractal images to it...
[9 replies] Last: If you're lucky, the C++ library uses the C library, which will tell y... (by dhayden)
Pages: 123... 18
  Archived months: [feb2021]