General C++ Programming - September 2012 (Page 18)

Computer Simulations of Science
 
I was just wondering if anyone out here knows any good websites or resources for a tutorial on Computer Simulations in Science? Such as making a program to simu...
[5 replies] Last: Well, a quick Google later, I've found a tutorial on rope physics Rop... (by andywestken)
What should I do?
 
I have learned the language, but i cant think of anything to do. can anyone give me ideas, if you need something coded, just ask for a download link.
[1 reply] : Try this thread mann it's great. http://www.cplusplus.com/forum/begin... (by Aceix)
using static_cast to downcast
 
I have been handed a project in which mostly static_cast 's are used for down-casting. I always did dynamic_cast so this was surprising and i went on to stud...
[3 replies] Last: any kind of dereferencing is undefined when you have a bad pointer. (by Disch)
by wawa2
<SOLVED><HELP> error type
 
#include <iostream> #include <iomanip> using namespace std; //class_matrix.cpp class matrix { private: int column; int row; fraction** mtx;...
[3 replies] Last: thanks..!! it is working.. haha.. the error is very simple.. never not... (by wawa2)
Error LNK2019, I cant get rid of this error
 
I am trying to call a function within another function but I do not want to return any values so I am using void functions. I having difficulty with passing my ...
[6 replies] Last: Show the new code you have, and please format it in your post (look fo... (by Mathhead200)
by Alx101
Linker: Unresolved externals
 
I am trying to use AngelScript into my project but i keep gettig this annoying linker error: error LNK2019: unresolved external symbol _asCreateScriptEngine re...
[8 replies] Last: Nvm i solved the problem by switching the angelscript.lib to angelscri... (by Alx101)
Random number
 
Lets pretend that i got a random number generator. And i want ot connect it to "int" or "double". If its a success. When i type cout << the_interger; c...
[1 reply] : class Random{ private: int range; public: Random(int range):ran... (by ne555)
Checking a network
 
My problem goes something like this. I have a variable of 5 arrays a for storing the 5nodes of a network. The network is randomly formed by the random number ...
[no replies]
Casting enum to other enum?
 
Hi, I have two classes, Board and PuzzleSearch. Both contains a private enum named MOVE_DIRECTIONS with the same values MOVE_UP, MOVE_DOWN, MOVE_RIGHT and MO...
[9 replies] Last: Why didn't I think of that? Silly me ;) Thanks! (by DreamCore)
50% off sale on some Programming books at amazon.co.uk
 
The 2012 edition of The C++ Standard Library: A Tutorial and Reference for 34 euros. Many other books for 50% off incl. The D Programming Language, effective c+...
[1 reply] : Thanks Dexter XD - but when will you no longer need your dark passenge... (by soranz)
by beakie
ItemArray constructor: Syntax
 
What is happening in the constructor? struct ItemArray { RS_size count; RS_size capacity; t *items; ItemArray() { count(0), capacity(0), ite...
[1 reply] : > What is happening in the constructor? > ItemArray() { count(0), capa... (by JLBorges)
c++ 3d game engine request
 
could anyone please code my 3d game engine i seriously will give a lot credit for the engine please help me because i need it now bad i can wait a few weeks or ...
[6 replies] Last: a framework for 3D rendering and game development for Python and C++ p... (by editableclips)
shuffling a packet of cards
 
Hey guys, I know you can use rand_shuffle or something along the lines to shuffle a packet of cards but I want to see if I could do it just using srand(time(0))...
[1 reply] : First read this: http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shu... (by JLBorges)
by beakie
Maths: Graphing Quadratic Equations (without gaps)
 
How to draw a quadratic curve? I have a quadratic in the form of 3 floats A, B and C.... I want to draw it! I need to do this using ONLY a setPixel function....
[7 replies] Last: @ne555 thanks, will have a read of the maths in your first example... ... (by beakie)
c_string need help with output
 
firstName is assigned "Tom" and the lastName is input from user and im having trouble using fullName = firstName + " " + lastName; i remember the professor ...
[5 replies] Last: change to: char age ; ... cin.getline(age, 3); ... (by SIK)
Odd Getline Error
 
I am working on a sorting program for hockey stats, (school assignment) and for some reason when I attempt to read from a text file I get weird output. It doesn...
[1 reply] : Im not sure i understand. You have a function called pname(string) wh... (by pogrady)
2d Vector Printing
 
Should be a simple question: How does one print one element of a 2D vector? For example with an array you would use int myarray = {4,3,1,2}; cout << myarray ;...
[3 replies] Last: I think you need the at function ( a member of vector) Google C++ vec... (by TheIdeasMan)
Priority Queue comparator problems
 
This is basically what I have in main: struct CompareBoard : public std::binary_function<Board*, Board*, bool> ...
[1 reply] : I figured out a way around my problem. Instead of calling the Board cl... (by peaco19)
OUTPUT how do i avoid it repeating the question and having the user input their answer twice.
 
when i ask to enter choice ..the user inputs choice presses enter and the program asks user to enter choice again. i know its because of getChoice(); but ...
[2 replies] Last: thank you! (by s123456)
Need help with adding to and searching through a list.
 
Hi guys! The program I'm using revolves around the following structure: struct people { int ID; char name ; char address ; }; The first thing ...
[1 reply] : 1) Use getline instead of cin. 2) Separate first name and last name... (by tolga gerekci)
September 2012 Pages: 1... 1617181920... 32
  Archived months: [aug2012] [oct2012]

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