Beginners - July 2014 (Page 40)

by wharp2
I have to wright a program that uses a file to find the average, Max and minimum numbers in the document.
 
I have been working on this for hours and just can not see why my min number is coming out to "0" There is not a "0" in my "Exam scores.txt" Every thing Else s...
[1 reply] : Line 34: You initialize min_score to zero. number will never be < mi... (by AbstractionAnon)
PlaySound without "freeze"
 
Hi, I want to add sound to my program, but everything "freezes" until the sound is over. It prints '1', then plays sound, and when the sound ends, it prints '2...
[3 replies] Last: It works, many thanks! (by Voltinus)
by h4ever
Concept of saving file names in 2D container/2D array
 
I am having images which are having two numbers for x and y position. I am going to merge these images together as you would do on a grid or on a map. In my cod...
[5 replies] Last: Great. It works :-) (by h4ever)
No ASCII characters displayed
 
I am trying to make a simple console (ASCII) game and when I try to print out characters in ascii, I just get a bunch of weird random stuff on the screen when i...
[10 replies] Last: For contrast... here's how you could do a splash screen with graphics.... (by Disch)
Copy word from Active page
 
Ok guys, you all have been very helpful with my weird questions lol. Here is another one. If I want to be able to search the current webpage I'm looking at for ...
[2 replies] Last: I dont know what that means :( (by ibdv4521)
Exception Handlers
 
I am trying to grasp a better understanding of exception handlers. I have a program that is taking some information from a user with a selection of 1 or 2, I w...
[11 replies] Last: Very helpful! thank you for showing me my errors. I am quite new to C... (by DEnumber50)
Solution time
 
Hello, I am developing some algorithms and I want to find out how much time does each algorithm need to build. Is there a simple way to do this?
[1 reply] : What to mean by "build"? Do you mean compile, or do you mean execute?... (by AbstractionAnon)
c++ book old edition
 
I am a beginner programmer. I have c++ primer plus by stephen prata the 2nd edition (1995). A lot of the content is old, for example, the header files seem to b...
[2 replies] Last: Alright, thanks man! (by jub4jive)
How to free chain link consisting of this structure?
 
typedef struct tpatient { char* name; char* surname; TADDRESS* address; char* id; int age; char gender; BLOOD_TYPE blood; struc...
[1 reply] : Create a current and temp pointer. Set current pointer to the fir... (by AbstractionAnon)
by Mikkiz
Finding largest and smallest numbers in an array and other Qs
 
Hi all, I am a beginner at C++ so please do bear with me if I do not understand your answers. Firstly, I am making a simple program for checking how long my ...
[3 replies] Last: Line 4: Your values are not a valid integers. You can't use a : in a... (by AbstractionAnon)
Prime Palindrome Stops after a few iterations
 
I can't figure out why my code appears to stop after reaching 8. The output of my code is 1 2 3 for prime numbers and 4 6 8 for non primes (not sure where the 5...
[1 reply] : for (int j = 0; j < v.size(); j++) { cout << w << " "; } i su... (by LaboPie)
fatal error: SDL.h: No such file or directory - SDL_ttf.h can't use SDL.h (and possibly neither can main.cpp)
 
This is fortunately hopefully a pretty easy problem. Basically, the compiler throws a fatal error my way whenever I try to compile my program - it can't access ...
[3 replies] Last: Guys halp. I replaced (in SDL_ttf.h) #include "SDL.h" with //#inclu... (by Somniad)
How to read CSV files(notepad)
 
Can anyone help me writing a code for this program. Fields: TimeStamp,TransactionID,SYMBOL,INSTRUMENT,EXPIRY,LTP,LTQ Write a class to compute the Open, Hi...
[10 replies] Last: Sorry my mistake... i meant to say i was specifically looking for this... (by aashutosh21)
Help with unresolved external symbol
 
I keep receiving error messages saying that an unresolved external link is causing my code to crash, I rewrote my first code to cut back a lot of unnecessary li...
[2 replies] Last: Thank you very much, I can't believe that is all that I was missing ha... (by jrossar)
I/O from file
 
I'm attempting to input a line of text from file (7 words / 2 numbers). Once input, I need to capitalize all the letters (maintaining spacing) and output it to ...
[1 reply] : Use <fstream> to get things to and from files. <string> would also be ... (by Yay295)
by FOB
Starting from scratch. What should I start studying from?
 
It's about to be my second in college after this summer. None of the classes that I have taken are related to computer science or even just science. I don't kno...
[1 reply] : Book wise I'd recommend in this order: Programming: Principles and Pr... (by BHX)
by Jakee
Question about threads
 
So everytime you run a C++ program by default you have 1 thread the main thread which is the whole program, then you can instantiate multiple threads to perform...
[2 replies] Last: I second what Disch said. I had a program that was taking too long to ... (by Yay295)
writing functions and classes
 
I was just wondering,do people usually write their function definitions, prototypes and classes in a separate file or all in main? Which one is the better pract...
[2 replies] Last: Alright. Ill stop writing my decelerations and definitions in main the... (by darkn3ss)
How to Join Two CSV Files Using a Unique Key
 
Objective: to join two CSV files together into a third CSV file which are based on a unique key (which is in column 1 of CSV files 1 and 2). Please ig...
[1 reply] : So what does the code you provided even have to do with this problem? ... (by jlb)
by h4ever
Why file listing function does not work correctly?
 
I have this function running on Windows: int FILE_::findFiles(char * path) { WIN32_FIND_DATAA search_data; memset(&search_data, 0, sizeof(WIN32_FIND_DATAA...
[4 replies] Last: Definitely solved. The wildcard really works, but my problem was that ... (by h4ever)
July 2014 Pages: 1... 383940414243
  Archived months: [jun2014] [aug2014]

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