General C++ Programming - May 2013 (Page 33)

Xcode compile problem - basic c++
 
Hi guys, I am new to c++, and I have been going through some basic code to get used to the syntax etc. I have encountered a compiling issue with my current c...
[5 replies] Last: Since you're using XCode, are you sure you've created a C++ project an... (by Lodger)
by mrm40
how to give equation to a program
 
How can i give an equation to calculate? For example: cin>> equation; //equation is y = 5*(x/2); then: cin>>x; //x is 6; then: // y = 5 * ( 6 / 2 ) = 15; co...
[6 replies] Last: @reham: till i complete my code you can see the algorithm I'm going to... (by mrm40)
accessing pixel values
 
Hey I have tried everything and i still can't access pixel RGB values in float format. i tried vec3b which produces strange characters which i can't cover...
[4 replies] Last: Thanks, i will take a look at those sites, opencv is soo annoying beca... (by asda333)
C++ compiler?
 
Hello! I am just starting out with C++. I'm trying to configure NetBeans, but it needs a compiler. Any idea where and how I would get one? I'd prefer one tha...
[5 replies] Last: http://tdm-gcc.tdragon.net/ (by closed account 1yR4jE8b)
Passing parameters to a thread
 
I've been using threading for a while, that was no needing parameters.. so I used for example the following line : _beginthread(functionName, 0, (void*)1...
[2 replies] Last: I don't think this is standard C++. I guess I can only show you C++11 ... (by Bourgond Aries)
by jombyy
error C2447: '{' : missing function header (old-style formal list?)
 
: error C2447:warning C4518: 'double ' : storage-class or type specifier(s) unexpected here; ignored : error C2146: syntax error : missing ';' before identifie...
[3 replies] Last: #include <iostream.h> #include <iostream.h> int main () double... (by MiiNiPaa)
code for animation
 
can anyone help me with a code for animation which i can understand and develop my own plz if you know graphics and motion in C++ can i have your email s...
[2 replies] Last: ok thanks but i cant understand these tutorials (by closed account ENADjE8b)
How to write a general code for time complexity of a program
 
Hey, Can someone help me with a general code for a program time complexity;I need a function to calculate the runtime for my programs execution.
[3 replies] Last: Well, there is already ready code fore you. What do you have problems ... (by MiiNiPaa)
HELP
 
i read atleast three C++ books and all are the same i dont see how to put images or animated and colors can any one try to be my lacture
[3 replies] Last: do i have to draw everything that appeas in my game? or my program (by closed account ENADjE8b)
Some Inheritance Issues
 
Here is a class defenition: #ifndef __SHORTEST_PATH_H__ #define __SHORTEST_PATH_H__ #include "graph.h" #include <iostream> using namespace std; templ...
[2 replies] Last: Thank you, fixed the errors. The reason why the second error existed w... (by Spring08)
Do I understand this?
 
Do I understand this right, why #pragma once is useful? Its because if you have two files included in a cpp/h, that both in their source code have included...
[10 replies] Last: http://www.cplusplus.com/forum/general/91224/ (by CroCo)
by Jace
Text Adventure
 
I am working on a text adventure right now, and it's pretty good if I do say so myself. But right now there is one big issue that continues to vex me. Help woul...
[2 replies] Last: I'm trying to make it so that after 10 seconds it'll go to the timerun... (by Jace)
Classes, pointers
 
will this work? class apple { ... int * locationOfSeed; ... };
[3 replies] Last: I knew. I just didn't know if pointers could be members. (by jsprogrammer)
accessing vector objects via a pointer
 
I have a pointer to a vector of objects, each object has an array and a couple of strings. I am unsure how to access the data in the objects via the pointer. ...
[2 replies] Last: Cheers, that's sorted me out. (by Crakrjack)
Is my sorting of linked list CORRECT?
 
Condition p->next!=NULL (highlighted in RED color) isn't necessary in my code. Have I done absolutely correct, or I've used extra conditions in the code? C...
[no replies]
Map not loading correctly?
 
For my BST-tree based map, whenever I load in my data from a file, it reads everything in, but the only thing that actually stays in the tree is the most recent...
[4 replies] Last: Let's say MapA has: key = a value = b MapB: key = c value = d when I... (by Imagine)
by Krahl
Save file as binary data
 
Hello, I have an Obj object and I've written the following functions to save the data of the object in binary form void Obj::saveDataBinary(std::string file...
[no replies]
Problem with jumping
 
I am working on a platformer using C++ and Allegro 5. So far the camera works, as well as drawing things. The jumping however does not work. The player will go ...
[1 reply] : Anybody? (by link5019)
please help me topologcal sort
 
please help i must add topological sort this code but i can't.please help #include <iostream> #include <queue> #include <string> using namespace ...
[no replies]
Simple, but fast, sort of doubles in std::vector
 
Hi, I am currently working on a "statistics" library, and, for some things I hope to do in it, I need to sort an std::vector<double> by the size/"magnitude" of...
[2 replies] Last: std::sort is the fastest, but merge sort is the fastest basic sorting ... (by Imagine)
May 2013 Pages: 1... 3132333435... 47
  Archived months: [apr2013] [jun2013]

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