General C++ Programming - December 2014 (Page 15)

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 are necessary (relational operators, variables, etc) from the...
[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 file or directory" This is the program code: #include...
[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 ; string student_name ; string nickname ; int sub; }; ...
[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 #include <iostream> #include <vector> #include <strin...
[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: http://quotes.morningstar.com/fund/fbiox/f?t=FBIOX When th...
[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 the mass of the planet, the radius, then you use the mass an...
[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 calculations. Write a program that calculates the balance of a ...
[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 of a threemonth period. It should ask the user for the star...
[3 replies] Last: Ok so I got it to let me enter the values myself...now 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, the only numbers that are opposite in my reverse array are th...
[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 program. how do you actually make the program read from the fi...
[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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
[6 replies] Last: I have managed to fix the problem, by rewriting the whole thing, doing... (by MatiasMunk)
Trying to make a Cohen's D calculator but I'm having trouble with the logic
 
Hey guys, I'm trying to make a Cohen's D calculator but I can't think of a solid way to make it. I know all the formulas and what is needed, but I can't thi...
[no replies]
How do you make an interactive program in C++?
 
Hey guys I'm a CS student in college and I've been learning C++ for a year or so now. I feel pretty comfortable with the programming portion when it comes t...
[2 replies] Last: Thanks for the reply! (by rariSoon)
Undefined symbols for architecture x86_64
 
I'm trying to install GSL on OS X 10.9.3. I had followed all the installation steps mentioned. But I keep getting this error. Undefined symbols for architect...
[no replies]
Game Development (Expert Level)=Top games of 2014
 
hello i really wonder how are newest games being programmed i have heard that direct x is highest possible graphic used in these game .... also i have heard tha...
[1 reply] : Take some existing game and look how it works. http://gamedev.stackexc... (by MiiNiPaa)
Switch Help
 
I keep getting the error "case value has already appeared in this switch" how do I fix this? switch (selection) { case 'A' || 'a': aFunc(Houses); b...
[3 replies] Last: Same as you have it now. You just separate it in two different case la... (by MiiNiPaa)
by Nilo
returning a pointer getting an error: 'swedish' was not declared in this scope
 
Hey everyone ! I'm getting en error : 'swedish' was not declared in this scope. Same goes for get_eng() method too sure. Been searching so much no result... hop...
[4 replies] Last: oh yes, it worked now ! Many thanks :) (by Nilo)
Variable Corrupted
 
I keep getting the error "Stack around the variable 'odd' was corrupted." how can I fix this here is the program: #include <iostream> #include <iomanip> ...
[1 reply] : Make sure you don't run out of bounds when accessing the array element... (by Peter87)
C / C++ struct
 
Hi, is it possible to create in header file a typdedef of a struct without defining one nor allocating a memory for one? Thank you.
[2 replies] Last: and classes/structs without do not use memory unless instantiated. (by MiiNiPaa)
by Lauke
Design pattern for function operation
 
Hi guys, At your knowledge is there any design pattern allows to describe operation like the following. MyFunctionObject f; //Init f... MyFunctionObject...
[7 replies] Last: Geez, this is amazing!!! I've used something similar when i attend my... (by Lauke)
December 2014 Pages: 1... 1314151617... 31
  Archived months: [nov2014] [jan2015]

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