Beginners - September 2019

Determine the sum of even numbers
 
Determine the sum of the even numbers between 1 and n. n is specified by the user. Example: If the...
[3 replies] Last: Er, math, dudes. #include <iostream> #include <string> int main( i... (by Duthomhas)
Im new to c++ and switch case menu
 
I keep getting this error In function 'int main()':| |93|error: expected 'while' before '}' token...
[1 reply] : Your do needs a while at the end of it. You should not be surroun... (by fiji885)
Formatting Date
 
How do I get it to say "Invalid Length" if the code is greater than 8 digits or less than 8. #includ...
[2 replies] Last: Hello cplusplusgod12, I put this quickly. It may not be the best, but... (by Handy Andy)
How to output message is input is the wrong length
 
How do I output a message is the input is the wrong length int main() { int code; int ye...
[1 reply] : Read it into a string and use .length() (by jonnin)
Problems with ifstream
 
I need to create an assignment in which calculates the total price of a list of items and their quan...
[1 reply] : I'm not sure if this is your problem but why are you declaring a, c, a... (by Too Explosive)
input isn't passing into a class.
 
results of add(), sub(), etc. aren't printing out... Here's the actual code #include <iostr...
[5 replies] Last: Why are you trying to do OUTPUT in your INPUT routine? Also, since it ... (by lastchance)
How do I check the second character of this string?
 
Hello, I'm working on a program that needs to check a 6 character string, and if the characters I've...
[6 replies] Last: <3 (by zapshe)
timezone issue
 
I have an issue about making a timezone between departure time, destination time with the specific p...
[2 replies] Last: if(0<=s && s <=23 && 1<=t && t <=12 && -5<=f && f <=5 ) I don't se... (by deathzine)
Error C1083 part 1
 
Cannot locate source file. how can I add std:: to all vectors, strings, ifstream and ofstream to get...
[1 reply] : using std::cout; //remove std:: from cout, as an example (by jonnin)
Unable to Round Up
 
[Write your question here.] I am working on a program to convert degrees Fahrenheit into degrees ...
[4 replies] Last: Using iostream flags really doesn't alter the stored decimal portion e... (by Furry Guy)
by jonnin
2D array formatting
 
int main() { double tbl ; double *dp = &(tbl ); for(int i = 0; i < 100; i++) dp = i; ...
[3 replies] Last: oh whee, another rage-quit poster. (by Furry Guy)
Output isn't showing a number I need
 
I have this code completed. But it isn't showing me my first number that I know exist within these p...
[10 replies] Last: In a nutshell... floating-point math. I don't know specifically what ... (by Ganado)
Trouble reading in Chars, adding them together as a string with If Statements.
 
I'm writing a program and I'm in the final stage from it. I'm reading in these forumlas from a file ...
[11 replies] Last: I've already showed you how to add `a' and `b' if they are char zapshe... (by ne555)
Characters not being detected.
 
Good day. I've written this program to print the amount of times a character is found,and am using f...
[2 replies] Last: Hello kings0d, In addition to what jonnin has said. In line 24 the... (by Handy Andy)
SDL problem :: entry point must be defined
 
Hi guys, I'm having problems setting up SDL on my IDE, I am using MSVC 2017 x86 I downloaded t...
[16 replies] Last: Close. By commandeering main(), SDL can avoid multiplying code for e... (by Duthomhas)
Trust issues.
 
If you have a dynamic array of strings and you delete it, will the strings still delete their dynam...
[12 replies] Last: Thanks for the clearing up, was a little confused on what he meant. ... (by mbozzi)
stepwise refinement and top down
 
Just looking to double check if I am right with my thinking of these two. From what I have read, top...
[3 replies] Last: Humans can't eat an entire whole cow. It has to be cut up into smalle... (by Furry Guy)
std::unique() to compare two vectors? (1,2)
 
Is it possible to have std::unique() compare two separate vectors? For example: - Vec #1 = {1, 2...
[20 replies] Last: [quote=jlb]That last '3' has nothing to do with 13, it is being caused... (by PiggiesGoSqueal)
compile time cast stack into vector
 
Hi. Everyone. I want to ask, if it is possible, to cast a mount of memory allocated in the compil...
[3 replies] Last: A std::vector's size can be set at compile time, but once created the ... (by Furry Guy)
September 2019 Pages: 123... 14
  Archived months: [aug2019]

This is an archived page. To post a new message, go to the current page.