General C++ Programming - January 2014 (Page 9)

off by one error
 
This is supposed to read in from a file a date, sender, recipient, and body (respectively). I have 5 sets in my local file for testing but my output is always o...
[1 reply] : I fixed it by changing the for loop to for( int i = 0; i < 1000 && (... (by Kyle Lanmon)
by Playdo
Language for app development? (1,2)
 
Hello, I'm going to develop a mobile phone app for use on Android, iPhone, Windows etc. I'm not a developer, but would like to do some research. Is C++ the s...
[20 replies] Last: C++ is the fundamental language needed to enhance your ability to buil... (by james26)
How To Read A .dat File
 
Hey everyone I'm working on a program that reads from a .dat file that has names and numbers associated with the name. What the big picture it will be able to t...
[6 replies] Last: Read up! http://www.cplusplus.com/doc/tutorial/files/ Here is a grea... (by J4ke)
Getting a full path by using a text file name
 
How to get a full path of a directory only using a text file name? (Btw i am using visual studio not windows)
[9 replies] Last: thanks (by tom john)
GUI Programming
 
hi, i want to get into GUI programming! what do you recommend me? i have Qt haven't used yet (even start learning) i heard its a low level not really good la...
[3 replies] Last: The newest version of Qt Widgets is 5.2, and the newest version of Qt ... (by CDuck)
sorting an array
 
Hey all, So I'm trying to sort an array of 10 elements provided by the user. For Example: Person 1: 5 Person 2: 3 Person 3: 9 etc etc... I want it ...
[4 replies] Last: It worked thanks!! Took a while though. (by pilotnate)
[URG] What's the difference between absolute c++ and problem solving for walter savitch
 
Hello!, I'm Planning to buy a good book as i'm still beginner to C++. I've been searching and asking my doctors and i found Walter Savitch is the best one...
[4 replies] Last: @Smac89 Thank you, Really appreciated! (by Omar El Gabry)
Multiple Inheritance And Concision/Mobility of Code
 
Hi, I've finally gotten to a point where I'm no longer dealing with understanding syntax issues, but now I'm writing so much code that I'm starting to have c...
[2 replies] Last: Thanks, that makes a lot of sense to me! I've also found something re... (by smcguffee)
why runtime polymorphism over static polymorphism?
 
Hi, I know what are the differences between these two, like in case of runtime plymorphims, the functions will be called based on contents of base class obje...
[3 replies] Last: ... then the runtime env looks for the address of the function to be ... (by Computergeek01)
Compilers for Qt Creator?
 
Link please? I downloaded it last night and this morning b4 school I tried to use it and it said: "Error: No compilers found", even though I have a compiler for...
[2 replies] Last: Well, I am to the point where you said add path. What do you mean by t... (by AceDawg45)
by Rockyy
vector memeory allocation
 
Hello I am trying to allocate a memory to vector but while running the program,my window appear and PC get halt state then i have to force fully shutdown my ...
[5 replies] Last: Oh >_> I didn't see that. Sorry. It seems as this is the suspect: fo... (by closed account N36fSL3A)
New to Programming, Problem with Unqualified ID
 
This first Dowhile loop is saying "expected unqualified-id" at the do and while parts. What does that mean do { do { do ...
[2 replies] Last: it would be a lot easier if you had this in [ code] [ /code] brackets.... (by closed account Dy7SLyTq)
the clock function
 
I read that the clock function returns the elapsed processor time (as measured in clock ticks) since the beginning of the program execution. But then another so...
[4 replies] Last: clocks in <chrono> and std::time() : wall clock time. std::clock(... (by JLBorges)
by xismn
waveOut API latency
 
Hello, This is a waveOut API intensive question. Not sure if I should stick this in windows programming... I'm using the windows waveOut API to procedurally ge...
[9 replies] Last: It was std::cout and std::endl. Hah! Yeah that'll do it. Glad it'... (by Disch)
How loop std::ostream and std::istream?
 
I was reading the book C++: How to program (Deitel, 6th Edition), and on the page 602 I implement my own String (training). But I want to implement my own Strin...
[7 replies] Last: I'm pretty sure that stringstreams use a std::string internally in mod... (by LB)
Im getting LNK2019 errors using SDL 2.0.1 in visual studio 2013
 
Here are the error codes and (http://pastebin.com/UjQP5bTA) Is the link to all the code: Error 5 error LNK2019: unresolved external symbol _WinMain@16 refer...
[6 replies] Last: http://imgur.com/a/5PwDR; I think thats what your refering to, again I... (by XSoloDolox)
I need some help please
 
Write a program that asks the user to enter a student’s grades on four exams.The program should display the four grades and the average of the four grades,ro...
[3 replies] Last: On these forums, we don't provide code that you can copy, paste, and t... (by LB)
Sort and Read file
 
Hi I am trying read in a file and sort it with user number SSN number, but I have no idea how to do it. I also need to separate the first name and last name wi...
[1 reply] : If you want to sort multiple entries you need a container such as an a... (by coder777)
Converting one-dimensional to two-dimensional array
 
Hi guys. I had a hard question in my C++ final exam and I'm trying to solve it for the last 3 days. I haven't succeded yet! Here is the question: You have a one...
[2 replies] Last: Thank you. The problem is solved. #include <iostream> int main(){ ... (by MSonmez)
Bisection Method Help
 
Hello new here. I just want your help in my code. #include<iostream> #include<cmath> #define f(x) (6)*(x)*(x)*(x) + (5)*(x)*(x) + (7)*(x) - 2 using name...
[2 replies] Last: Thank you sir. That solved the problem. (by Ayakashi Ghost)
January 2014 Pages: 1... 7891011... 25
  Archived months: [dec2013] [feb2014]

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