General C++ Programming - June 2011 (Page 11)

by ascii
Unresolved External Symbol
 
Hey guys, I've been learning SFML and am getting an obnoxious linker error that I can't understand :/ I have a static vector in my CMoveableObject class and I...
[6 replies] Last: Yeah I just discovered that by accident! Good call man! (by ascii)
tellg()
 
hi guys, i am doing program of file handling in which im using tellg() function(in the form fstream_name.tellg().but because of tellg its producing adverse eff...
[2 replies] Last: The tellg () and seekg () methods of the STL iostreams are broken un... (by Duthomhas)
need a little help on my pacman clone in C++
 
so me and a couple of friends are doing a c++ project. so far we are moving forward, but i got stuck on the ghost, its eating our pellets! can anyone here give ...
[4 replies] Last: I have been doing something similar recently using the console, i don'... (by alastairl)
Urgent: C++ Webservice call
 
I have done the setup of CDT (Eclipse) with MinGW. I want to call Rest webservice from my C++ code and need guidance on the same. Please help.
[no replies]
C++ build issue
 
I have done the setup of CDT (Eclipse) with MinGW and trying to compile my project. I'm facing some issues with the Makefile. It says: ======================...
[no replies]
How to know number 13 :-?
 
#include <iostream.h> #include <conio.h> class hamed{ public: int a; int b; int show(){ int c; c=a+...
[3 replies] Last: cout<<(*time).show(); is outputting the value returned by show. Howe... (by ne555)
by k1256
Problem using VTK in C++ Shadeop
 
Hi, I have written a shadeop in C++ using VTK receive a point from the shader, find corresponding data for the point from data files, and return a value betwee...
[no replies]
by tene
Dynamic Memory Allocation
 
Hello Guys I have a small confusion in the dynamic memory allocation concept. If we declare a pointer say a char pointer, we need to allocate adequate memory s...
[3 replies] Last: In your first example, you actually have a memory leak. You allocated... (by doug4)
by ascii
SFML Collision Detection :/
 
Hey guys, I was wondering if someone would be willing to look over my code and see if they can tell what's screwed up with my collision detection. For some rea...
[14 replies] Last: I'm working on it, but it's turning out to be a major pain in the ass ... (by ascii)
Getting the size_type of a container
 
I am trying to clear warnings in old code. I have lots of for loops that take an int to browse vectors, so i get sign mismatch warnings. I know that i can use...
[2 replies] Last: Using the size_type is the best solution. You could use a shorthand v... (by webJose)
How do I check for SSSE3 support?
 
Hello everyone, I have a program which uses some SSE-instructions (mostly SSE2, but some SSSE3, too) and therefore I need to check whether or not these are s...
[3 replies] Last: @bartoli: Thanks, but for some reason I now found something which is a... (by Squall83)
by maxxx
Different ways of suming specific numbers to gain 100
 
hi i want to write a code to show how many ways i can sum up 5 different numbers so the answer would be 100. here are the numbers : 2,5,10,20,50 i...
[13 replies] Last: My algorithm is similar and still doesn't yield the correct result. I... (by webJose)
C Runtime Library ERROR
 
I am using a C# executable with a C++ DLL file and have had no problems whatsoever until now. I am trying to add network streaming to the DLL file and I need to...
[no replies]
by srnick
Random Number Generation
 
Hey guys, I have to create a program that, at first, generates a real number based on normal probability with given mean and standard deviation. I have found s...
[6 replies] Last: You can also find Mersenne-Twister library. My University Professor us... (by vonpik)
by Ikaron
Knight Movement (Chess)
 
This isn't a "How do i..?" thread, it's just for discussion as I'm interested how other people might go about solving this problem. So a Knight, for those w...
[8 replies] Last: for(int i=0;i!=25;++i) { if(i%5==2 || i/5 == 2 || (abs(-2+i%5)+abs(... (by kev82)
by flowly
template function definitions in header files
 
hi friends, so its Friday evening and i was wondering what i should do, so i decided to write some code and i ended up trying to design my own little helper ...
[5 replies] Last: ok thanks guys =) @L B: the comparison helped me :) (by flowly)
by LB
Function Overloading and Template Specializations
 
Why is it not possible to do this? template<typename T> T Func(const T& t) { //do stuff } template<> string Func<string>(const string& str) { //do d...
[11 replies] Last: To your point of view, it allows users to shoot in the foot by using a... (by luluxiu)
by rhertz
Files .a y .o in a "hello world"
 
Good morning or good evening, I'm tryn to learn C++ with Eclipse then I create a project in C++ static library but when I build> release I get two files test.a ...
[2 replies] Last: I speak Spanish so sometimes some things confuse me, really thanks! (by rhertz)
Integer Question
 
EOM
[8 replies] Last: string accNum; //where we will store the bank account number getline... (by Mathhead200)
Streaming file from remote location
 
I am looking for a library that can take a file from a remote server and put it into the stream so that different variables can be read from it. For example.. ...
[1 reply] : Generally you can use one of the many application layers in sockets su... (by closed account S6k9GNh0)
June 2011 Pages: 1... 910111213... 28
  Archived months: [may2011] [jul2011]

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