General C++ Programming - December 2015 (Page 19)

by Yufe
How to print the list of sorted score?
 
Hello, everyone I want all scores show like xx.x For example, 78.8 instead of 78, 64.5 instead of 64, and so on. An early replay would be appreciated! Her...
[4 replies] Last: code kiddy, Thank you very much ;) (by Yufe)
So i have this assignment.
 
I have this assignment where i have to write a program being a Liberian assistant here is the actual assignment. The board of your public library has de...
[5 replies] Last: heres what i have for my card.c file so far... #include <iostream> ... (by delag20)
HELP WITH CODE!!
 
\
[1 reply] : I can give you some tips and hints to get you started. So first, I wo... (by newbiee999)
Pathfinding from a text file (1,2)
 
I'm working on a program that reads coordinates from a textfile that contains several coordinates. Starting from the first coordinate, the program then outputs ...
[21 replies] Last: About your comma problem, one thing that other languages have that c++... (by wizebin)
Tic Tac toe
 
I'm building a tic tac toe program with multiple players. Each player has a symbol char as a place marker, which is stored in a vector. vector<char> symbo...
[2 replies] Last: AHA! Thanks. Pointers are confusing but I didn't need it! //THIS WO... (by juicyjames)
How to play PlaySound() anything else than *.wav?
 
Hello, I have a problem, I want to play some long sound files for a playlist made in C++ and the .wav files makes the file so big. Can you help me to play in an...
[1 reply] : PlaySound will only play .wav files. To play files of any other format... (by Shadowwolf)
by toast9
<Unable to read memory> error
 
I keep getting this error and I can't figure out why. This error is saying this error for member variable mpCurrentState and mInitialStateID. These variables ar...
[4 replies] Last: I print the pointer with a null value to make sure it is a null value... (by Thomas1965)
Reading a text file......
 
Hi. What is wrong with me reading the text file? int main(){ ........... int fh = _open("g://PA2//10.txt" , fh); fh=_read(fh,a,70000); ..................
[11 replies] Last: OK, I was making a stupid mistake in making fh get the value of _read(... (by hooshdar3)
help me compare 3 or more arrays
 
well i have this project which i need to create a lot of user defined array say: int num; int array ; and it goes on and on like that. say: string array1 ; ...
[5 replies] Last: I'll try that. Thanks all. (by Coolestbomb)
college assignment,text file~
 
i can read the first customer detail only,others cant read....how it work to read all customer? here my code~ void main() { system("color 8a"); SYSTEMTIME t...
[2 replies] Last: You need to skip the first line of the file or remove it. //Read cu... (by Thomas1965)
While Loop not working as expected.
 
When I put while (valid = true) the loop prompts me to input Pass but then the program does nothing. When I put while (valid = false) the program doesn't prompt...
[2 replies] Last: int Pass, valid; while (valid = true) Also valid has a random va... (by Thomas1965)
undefined variable
 
Hello. I am defining my variable outside my function quickSort() and when used it inside the function I get this error. Why is that?
[3 replies] Last: You wouldn't happen to have using namespace std; and be using the a... (by TheIdeasMan)
Creating a faux console
 
How can I create a fake console? What I mean is, how can I create a window that looks and behaves like a console but it's just an illusion. I hope that makes...
[1 reply] : How you do it depends on what OS you are targeting the program for. M... (by closed account E0p9LyTq)
by Ozzy69
Help me with fscaf
 
Hello, i dont found the error of the function fscaf, look my code: #include <stdlib.h> #include <stdio.h> #include <string.h> #include<stdbool.h> typedef ...
[3 replies] Last: float i ; .... ... &x[ i ] ... // *** error: array subscript is not... (by JLBorges)
by Jetman
Replace a specific word containing a space (string)
 
So, Ive written a chatfilter for this game I do some programming on. It's mostly working, but if the uses adds a space between the abusive word, it doesn't filt...
[1 reply] : Consider using regular expressions for this. #include <iostream> #in... (by JLBorges)
by asernx
Array not acting as intended
 
I have made some progress on my current program and I am almost finished. I can't seem to get it to output the number of occuranences of each letter, however on...
[1 reply] : cout << "Please enter a sentence to analyze: \n"; cin >> size ; Her... (by cire)
by a10e29
out of practice
 
Greetings and salutations! I haven't programmed in about 6 years so I'm a bit out of practice. The below code throws some 162 errors in xmemory0 Grid::Gr...
[3 replies] Last: In case you want to know why the error was what it was, std::vector is... (by Cubbi)
by Gather
Generating a list of random numbers
 
Hello everyone. I am having some issues with my homework assigment. they are asking me to generate a list of random numbers; no more than 50 (range 1-10). The ...
[1 reply] : Duplicate of http://www.cplusplus.com/forum/beginner/180329/ Which has... (by cire)
Help with Student Score Data Menu Program Using Structures
 
I am working on a programming assignment that deals with Structures and saving an output file storing information about student scores. I am confused on correct...
[1 reply] : Here is a link to my current code: http://collabedit.com/x6twj (by jacobjaime)
Validate Integer Input
 
This is a simple program with a select statement. The problem is when the user enters a char when an int is expected the program goes into an infinite loop. I h...
[4 replies] Last: If nothing seems to work, you should perhaps post the code of the non-... (by TarikNeaj)
December 2015 Pages: 1... 171819202122
  Archived months: [nov2015] [jan2016]

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