General C++ Programming (Page 8)

vector<> inside switch loop
#include <iostream> #include <vector> using namespace std; class tree{ public : int num; ...
[3 replies] Last: > do you mean that "vector<tree> huffman" do not have a destructor No... (by JLBorges)
MIDI using soundfont: adjustment in cents per MIDI note?
I'm currently using the following to determine the cents to move the sample of the soundfont, played...
[no replies]
Need help with a program plz
Hi i need help, this program meant to take date by integer numbers check if the date is valid and re...
[11 replies] Last: You could try something like this: #include<iostream> bool ValidMon... (by mutexe)
by ochi12
Is sfml/sdl worth a try or should i go with an engine?
I'm learning game development, i was looking for a nice api/framework for java, but then i decided t...
[14 replies] Last: I was not talking about creating an engine, i was asking if i should u... (by ochi12)
Help with Excercise
My excercise is: Improve the Lobby class from the Game Lobby program by writing a friend function of...
[2 replies] Last: Don't misunderstand the problem. You already have a function that all... (by tipaye)
by ejcpp
What's Wrong With my code? ARRAYS
**Every time i run the program nothing happens.** " You will be using a data file called elves.dat. ...
[1 reply] : Given your code as it is, if you have elves.dat in the same folder and... (by tipaye)
by BasV
T const& versus T& const
Hi everyone, I know T const* a; // Pointer to T, object cannot be modified T * const a; // P...
[3 replies] Last: Yes, makes sense. Thanks! (by BasV)
why isn't this working?
Why does this return 0? float ac=(79+91+100+43)/400;
[4 replies] Last: using C-style casts isn't really recomended. Unless you're writing in ... (by mutexe)
by DavidW
Pulse output through the audio jack
Does anyone know of a code snippet that will send a pulse to either the left or right channel of the...
[1 reply] : A super cheap way, but is looked down on because it uses "Windows.h" ... (by poteto)
Segmentation fault exchange and add()
Hi, I am writing a compiler and currently I am trying to build a tree that has all the tokens that a...
[5 replies] Last: Okay so I have figured out that specifically the string attributes of ... (by afterparty)
by GOPI56
"fatal error C1083: Cannot open include file: 'cstlib': No such file or directory"
When i run the program code,it shows "fatal error C1083: Cannot open include file: 'cstlib': No such...
[1 reply] : * <cst d lib> (by MiiNiPaa)
by GOPI56
Why i am unable to run this program when i try to run,this program uses structure with function .
#include <iostream> #include <string> using namespace std; struct student{ int student_ID ; ...
[3 replies] Last: I gave you everything you need to fix your program... Its against the... (by poteto)
writing clean code
I've written this code but as you can see it's messy. Any tips on how I can make it better? Thanks ...
[3 replies] Last: Also, we use cin.sync(); and getchar(); because the console closes ri... (by MiiNiPaa)
Reading a webpage with JavaScript and CSS
I’m trying to read in a MorningStar webpage to screen scrape Dividends and Capital Gains: htt...
[no replies]
Adding and Deleting
i am writing a program to list the 8 planets, then you select which planet you want. it gives you ...
[5 replies] Last: Complete Program Part 2: void After_Auto_Sort() { bool gameOn = true;... (by jasonwynn10)
I've gotten this far with my program....
I've pretty much got everything down. I need help actually getting the program to do all the calcula...
[no replies]
I need help!!! As soon as possible please!!!
Here is the problem: Write a program that calculates the balance of a savings account at the end ...
[3 replies] Last: Ok so I got it to let me enter the values I need the calc... (by happygo)
Using the string class?
I have to do this lab for one of my classes. I get to step 4 and do not see any 0's printed. Also, t...
[5 replies] Last: You'll want multiple print statements if you want to see the output a ... (by wildblue)
names help
im trying to make the program read from the file with the names and quizzes. im not dont with the pr...
[1 reply] : no help? (by gotclass1)
Vector tile map, collision detection
Hello people, I have created a 2D Map for my game. My Vector stores the following numbers: 0 0 ...
[6 replies] Last: I have managed to fix the problem, by rewriting the whole thing, doing... (by MatiasMunk)
Pages: 1... 678910... 56
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.