Beginners (Page 54)

by oOoOo
g++11 update in netbeans(windows)
Hi all, I use Netbeans 8.1 and windows 7 (hate 10). I updated g++ to the latest version by typing ...
[11 replies] Last: anyone? (by oOoOo)
"<" is not noticing 0.10 as being less then 0
I'm trying to get this program to only except numbers that are less then 0, but as far as i can see ...
[6 replies] Last: Thanks, how did i not notice this (feeling real dump). Thanks for not... (by isaacthebro)
.txt files and internal sobbing.
Hey everyone. SO I just started my first C++ class and we are working on a Lab assignment. A...
[4 replies] Last: It printed! for the love of god yes! thank you lol. Okay so now all ... (by DanTheHuman)
Cin.getline() help
I want to check if the first char is a 'n'. Not sure why i get an error at the if(x=='n') part. ...
[2 replies] Last: Thank you (by fivestar)
Help with header/cpp files
The way that I have to submit files for schoolwork is all in one file. I cannot have separate header...
[7 replies] Last: I just noticed the assignment in line 8 is reversed. It should be: ... (by AbstractionAnon)
Do, If, and While looping errors (any help is appreciated
I'm fairly new to C++ and i'm doing a coding assignment where a user imputed integer between 10 and ...
[2 replies] Last: Hello arowsmitt, One thing I have tried was to change the condition i... (by Handy Andy)
find function
How do I find (find function) a unique character in a string that is read in from a file, without kn...
[3 replies] Last: a unique character in a string I don't think that "find" is the usua... (by keskiverto)
Manufacturing Job Rotation
I am new to C++. I learned the language on my own by reading tutorials online and on this site. I ha...
[1 reply] : It sounds like this is a worker training problem. For the workers who... (by closed account iw7Gy60M)
referencing current object from class definition
I want to call my class TLIST function "Display()" from my other functions, such as "Remove()". How...
[1 reply] : Just Display() is enough. The current object is implied. If you wis... (by AbstractionAnon)
by Phil15
creating array with dynamic size on a stack
Hi guys, I have a small inconvenience here trying to create char array on a stack which would fit ...
[5 replies] Last: You can use a std::vector. inline bool DBStoreBase::removeRecord( st... (by Phil15)
dynamic pointer array
I am working on a project for class that I am having trouble with. The program creates a class objec...
[3 replies] Last: It will make it work, but the idea of the exercise was to make the arr... (by hornet7288)
by SaRiaX
Palindrome task
So I have a task to find 75 palindromes which squares are also palindromes. I have only the part whe...
[6 replies] Last: All int (s) should be replaced with int64_t (s). It is just my idea.... (by Krulcifer Einfolk)
Input validation and sanity checking.
Is there a better way to do input type validation / sanity checking? Here is what I have so far: ...
[1 reply] : just try to read and fail. you may use an auxiliar stringstream and ch... (by ne555)
Why won't my code cout "fail"?
Why won't my code cout "fail"? #include <iostream> #include <iomanip> using namespace std; ...
[3 replies] Last: but even after fixing that, numberOfFailedTests would be at most 1 (by ne555)
help with assignment
using the find, length, substr, and ignore functions, I need to read in a string from a file that ha...
[1 reply] : I would start by writing an algorithm in plain english. How do suppos... (by Bdanielz)
Just a simple, general question. If I'm include libraries in a header file, should I include those l...
[1 reply] : No they only need to be in one place and that is in the file where the... (by kemort)
Pointer & Loop trouble for final assignment
I am having trouble using pointers for the "Name" and "Address" portion of this code. As well as get...
[2 replies] Last: First off 22-28, creating the pointers and using them with the "Custom... (by Chris2424)
by kevcpp
Having trouble with my first C++ problem
Hello for my homework assignment I am required to do the following: Ask the user to enter a number ...
[5 replies] Last: and please, no capitals in ANY c++ codes or it will not work. example... (by WheatFieldOnFire)
Converting radians into degrees
How do I convert radians into degrees?
[3 replies] Last: degrees=radians X 180 / pi radians=degrees X pi / 180 yeah im smart!... (by WheatFieldOnFire)
Code will not run
Why won't my code run? #include <iostream> #include <iomanip> using namespace std; int main() { ...
[2 replies] Last: Here is a fix to it. Check comments for changes. #include <iostream... (by joe864864)
Pages: 1... 5253545556... 70
  Archived months: [aug2016]

Cannot post in this page. To post a new message, go to the first page.