Beginners - May 2015 (Page 23)

by oseri
cin.ignore() seems to stop execution
 
When run, the following code seems to stop at cin.ignore(1000, '\n'); line, as "Enter some number" doesnt get printed. Hitting carriage return causes the "E...
[2 replies] Last: When cin.ignore(1000, '\n'); is called the first time there is nothi... (by Tom56785)
by mee95
Help with assignment
 
Hi! If someone has time, could you look over this assignment that i have for school? It shouldnt be long but i dont know how to write the code so if someone ...
[5 replies] Last: You're welcome! Glad it worked out :) (by MikeyBoy)
Converting cin>>string to an int pointer?
 
Have been looking at structs, arrays, pointers, maps, templates, vectors, and sets. I am completely lost on how to getline from a user and convert that to an in...
[7 replies] Last: [quote=Peter87]@andywestken If the compiler talks about -std=c++11 it ... (by andywestken)
by savanh
need help
 
hi all, i have this code . i want to generate spical id for each obj,but here it does not work.so please any help #include<iostream> #include<string> u...
[3 replies] Last: class foo { static unsigned int nextid; const unsigned int id; pu... (by keskiverto)
illegel if else
 
Why its giving error when am using if else.. with only if it working fine. error is illegal else without if. void glist(int num ) { cout<<"Number grea...
[1 reply] : void glist(int num ) { cout<<"Number greater then 50 are:"<<endl; ... (by Peter87)
by csn00b
Help storing moves made in chess
 
Hiya! I've run into a problem with my chess program for class and Google is not providing the answers I need. The chess program doesn't need to enforce any r...
[1 reply] : You could read from the file until you hit an EOF, and just have two a... (by TwilightSpectre)
Reading strings for a simple parser
 
Hello everybody. I'm a C++ learner and today I'm here because I would like to receive some help for a little programming problem. I want to write a really simpl...
[5 replies] Last: how to create a vector of Verbs objects and initialize the data membe... (by andywestken)
Header Files for templates and structures
 
I was reading and chanced upon these terms. I understand that header files should only include: 1. Function Prototypes 2. Symbolic Constants 3. Structure/Templ...
[2 replies] Last: As long as no memory is created it can be included in the header file?... (by Bendistocratic)
by AlxM
Trouble with files in database structure
 
I believe I've documented all of my code fairly well, but do ask if any of it seems unclear. The unabridged version (with all documentation in tact) can be foun...
[no replies]
by jcx
how to use the shlwapi.h with visual c++ 2012
 
Dear all, Forgive me for all my dummy questions. But I really want to learn step by step. I want to use some functions such as PathFileExist() of shlwapi.h ...
[no replies]
Having trouble with this program
 
Right now I'm trying practice easy problems and working my way up to the hard ones, but I'm having a really hard time on this problem. "Write a program that p...
[3 replies] Last: Thank you, really do appreciated I figure out what I did wrong when l... (by closed account yR9wb7Xj)
"Find the errors" hw question
 
This is a "find the errors" assignment from a textbook; the textbook gives the answer to the question as "The isupper function can only be used to test a charac...
[1 reply] : With a loop. A C-string is a merely an array (of characters) that has... (by keskiverto)
Function (templates) reading user inputs
 
Hi, the code below has problems displaying the inputs that I want. I'm not sure whether the complier is able to read my inputs or unable to display them. EDIT:...
[no replies]
Need help with this problem!!
 
" Write a program that prompts the user to input a number. The program should then output the number and a message saying whether the number is positive, negati...
[1 reply] : Nvm, I figure it out I over thought the problem. Here's my final resu... (by closed account yR9wb7Xj)
issues with getline()
 
Hey all, Im having issues with using getline() to write a sentence into a file. It is printing out the entire sentence but not the first word for some reason...
[7 replies] Last: Ya that was the issue. The cin needed to be flushed. Im going to have ... (by specter113)
Help! The char type vabrial in this program stores more than one character!!
 
So, I was given this program by my teacher to figure out what's wrong with it and fix it. She, herself couldn't figure it out. #include<iostream> using...
[5 replies] Last: Thank you very much^^ you've really helped me a lot! (by anoss0624)
Error while using code blocks
 
I am trying to implement merge sort in C using code blocks. When i try to run the C file, i get this error "merge_sort.exe" stopped working. Kindly help me. ...
[no replies]
Need help with my program, not working!
 
Hi everyone, I'm a beginner in c++ and I'm playing around with using break, and I created this small basic program. What I'm trying to do is letting the user ...
[4 replies] Last: Your Welcome :) (by Codermik)
Yet Another "No Appropriate Default Constructor Available" thread
 
I'm working on a homework assignment for a C++ course where I chose to use Linked Lists instead of arrays (both for extra credit and as a learning experience). ...
[1 reply] : I've solved my own issue. If you look at the top of HoldList.h, it imp... (by DFAnton)
help with Array in OOP (object)
 
well my homework is that, in a park of atraction (like disneyland) i read 2 things, m (quantity of atractions n (quantity of popular atractions) and so, obvious...
[2 replies] Last: thank you, sorry, I believed that was like the array where might a val... (by JOSEluis2796)
May 2015 Pages: 1... 2122232425... 40
  Archived months: [apr2015] [jun2015]

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