Beginners - November 2016 (Page 39)

Looping problem
 
I'm having problems on this code. I don't know where the problem lies but whenever I try to run the program instead of the program asking for 3 inputs (id,name ...
[4 replies] Last: @lastchance Yep, this solves it. (by BobMorane)
I'm confused...
 
So I wanna make a program the lets a new Student learn about the teacher. The console with pop up. They will type in "Questions" and a list of questions you can...
[2 replies] Last: Thank you this helped alot! (by learningThings)
Basic input validation using if-else
 
Hello everyone, been modifying a lab assignment to do some basic input validation using if-else. There's one error, I'd really appreciate hints for. If t...
[1 reply] : Take a look at this:http://www.cplusplus.com/reference/cctype/. The "i... (by BobMorane)
I am getting a abort() error
 
I am working on a project for a class and my code is getting the error. If somebody could help fix my code that would be awesome. The thing we are trying to ...
[6 replies] Last: There's a critical typo in the OP: SSN in the sample input file has 8 ... (by gunnerfunner)
by gl3nnn
convert char digits to integer digits
 
How do i convert char digits to normal integer digits int main() { char str ; int n, pair; srand(time(NULL)); n = 2* (rand() % 10 + 4); ...
[1 reply] : int charToInt( char c ) { return c - '0'; } char intToChar( int i ... (by lastchance)
Calculator
 
Hey guys, i'd be glad if you can tell me whats the problem withs my calculator , thanks. #include <iostream> #include <cmath> using namespace std; ...
[1 reply] : a = fen + sen; b = fen - sen; c = fen*sen; d = fen / sen; ... (by lastchance)
by Nico
Please help me understand this memory problem
 
Symptoms: 1. it claims more and more of the working memory 2. after some (seemingly random) time it crashes with exception code c0000005 (access violation) ...
[2 replies] Last: I am not sure ... but i get confused about that: and I did not know ... (by fluppe)
by stbd
Need some help!! newbie here
 
Hello, I'm new here and to C++ and for some reason my code output repeats itself and displays infinite asterisks when i am trying to output its shape with aster...
[2 replies] Last: You ask it to draw either a rectangle, cross or triangle ... and then ... (by lastchance)
by mrsh
Function and loop
 
I want to run a simple function represent my X-axis, and here is my code,however, the result is wrong.The result should be 0,0.25,0.5,0.75,.. #include <iost...
[2 replies] Last: Thank!problem solved:) (by mrsh)
by fsfh60
rewrite his function
 
Hello friends, I am writing this program to get input in string and to output it as string but only the amount of string input provided not the MAXSIZE i pro...
[5 replies] Last: I don't think i fully understand what your looking for, but it sounds ... (by Shifty189)
Opening a file
 
So I am having trouble writing a code that opens a file that I have saved on my computer. I need to access a file, open it, read it, and then close it. this is ...
[9 replies] Last: Randomtxt (by Sampl37)
Confused - HELP PLEASE
 
thank you
[4 replies] Last: p.s. there is a way to use the for loop and not create the new variab... (by integralfx)
by mmcro
How to turn a vector into a value?
 
Lets say I have a vector with five entries [1,2,3,4,5]. How do I convert this into the value 12345 so I can set it equal to a variable?
[3 replies] Last: I'm tempted to say that this only needs the logic to be filled in: ... (by keskiverto)
getline help
 
I am doing some homework and they want me to fix the errors in the code but I can’t find out what is wrong with the getline statement from what I have read th...
[2 replies] Last: I knew it was something simple so the fix wasn’t a syntax thing it w... (by CamoMonk)
Re: function, fstream
 
Beginners Need answers urgently for my revision as exams is tomorrow ...PLEASE! Read the materials but still don't get it [code + question] rainfall.txt ...
[2 replies] Last: 1. while loop with getline using a delimiter http://www.cplusplus.c... (by Nico)
Using an array in two functions
 
I'm trying to modify a 2d array in one function then use that data in another function. So my first function would change boardarray to something else, then my...
[1 reply] : Simply pass the array to the other function. (by Arslan7041)
operator [] linkedList
 
Is this the right way to to overloading for the operator ? template<class T> T LinkedList<T>::operator (int index) { Node<T>* nodePtr; Node<T>* no...
[no replies]
HELP! ARRAYS COUNTING OUTPUT
 
I use C++ on Mac xCode. I keep getting the right output meaning my file is opening but it won't count up the right data on the files. Ill post what outlook is...
[1 reply] : The code works as is (at least for the New York Giants). To make it wo... (by Nico)
Operator overloading for template class linked lists
 
Hello How do you overload the following linked lists? template<class T> LinkedList<T>& LinkedList<T>::operator+(const LinkedList<T>& other) { } template<c...
[no replies]
issue using SDL2 with Events
 
Hey guys! I am using SDL2 lib now with code::blocks! But i had an issue. I was creating a game but when i run it, it doesn't work, it tells me that the game ...
[no replies]
November 2016 Pages: 1... 3738394041... 44
  Archived months: [oct2016] [dec2016]

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