General C++ Programming - February 2012 (Page 15)

by Justei
DirectX 9 Shader Problem!
 
Hey there, so I have made a little hook for a small game that me and some friends play, basically I hade made it load a shader to make it grayscale so that we c...
[6 replies] Last: That's actually exactly what I am doing ^^ Which is why this is so wei... (by Justei)
by Tatipu
Urgent help -- Visual Studio not working on my computer
 
Okay hi, I have a problem with the error of "fatal error C1083: Cannot open include file: 'string': No such file or directory" ^ and in my version it underline...
[2 replies] Last: Hi Did you create your project the way it should be created? or you j... (by therockon7throw)
by Aikon
Improving your templates' skills (1,2)
 
Hello everybody If you are a programmer and you want to learn C++ ans especially templates. Don't wait to follow me in this blog: http://surprising-code....
[22 replies] Last: You are right, a list would be a better choise but in fact I don't car... (by Aikon)
string tokenizer
 
i have a problem with my following code, note: this is just part of my code when i run it, lets say i enter hello world it will output: hello segmentation f...
[12 replies] Last: if(tokens == "cd") { // i call a function here } ... (by ruval002)
by surath
Ncurses With Dev c++
 
how do we write a ncurses program with Dev c++ environment , where can i find ncurses library for Dev c++ and how can i add ncurses library to Dev c++
[1 reply] : Dev c++ is very very outdated, but forgoing that. If you want to wri... (by Cheraphy)
Coin Toss Help
 
#include <iostream> #include "dice.h" using namespace std; int main() { Dice coin(2); int loop; int counter ; int coinValue; for (loop...
[7 replies] Last: yeah, 5 .. oyu can just use that idea... and do it how ever you like :... (by oonej)
C++ Quiz help.
 
Okay, so I am making a quiz for my c++ class, with cout and cin. And I have alot of text that i place in different functions, but what return type will the func...
[6 replies] Last: functions can be used toreturn a type, for instance, say you want to s... (by oonej)
Cin not working inside a function
 
Hi, I have a little program I created just to practice but for some reason the compiler is skipping the cin "costPerGallon" inside "calculateCostPerMile" fun...
[7 replies] Last: Thank you all for your help. @viliml I found the problem, I was us... (by fstigre)
How can I handle keyboard event SDL ? (Advanced)
 
I'd like to make a keyboard handler but more advanced features like : Combo (Press consecutively) , Hold Key and Simple Key Pressing (1 Key 1 Action). I shou...
[5 replies] Last: No, you can loop over whichever keys you want. (by Disch)
Help with singly linked list in c++
 
class Node { public: int data; Node * next; }; Node *p1, *p2, *p3; Assume also that the following statements have been executed: p1 = new(nothrow) Node;...
[1 reply] : The point of a linked list is that the "Node" contains the pointer to ... (by closed account o1vk4iN6)
Best Books for C++
 
Hi,I want to know what's the best book for learning c++?or the best book series?please give me some advice of course with reason.tnx
[3 replies] Last: The current professional community consensus seems to be that, for int... (by Cubbi)
about unordered_set
 
I need to know when i insert element into this container does previous items preserve their addresses or after some time this container reallocates/copies every...
[12 replies] Last: Thanks. I will try that. (by morando)
Build Issue
 
I'm trying to get this program to run. http://www.cs.sunysb.edu/~skiena/jaialai/jsim.c I put into Visual Studio 2005 and When I click build I get 16 erro...
[9 replies] Last: Thanks for the help (by CBSCHULZE)
Expanding macros inside string literals
 
I have some numeric version macros, let's take for example __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__, which I want to convert into a string literal like "4....
[4 replies] Last: This is how BOOST_PP_STRINGIZE is defined: /* BOOST_PP_STRINGIZE */... (by JLBorges)
OpenMW Morrowind Remake
 
Hello fellow C++ programmers, I'm with the OpenMW project, a group of fans working on a reimplementation of the game engine for Elder Scrolls III: Morrowind,...
[2 replies] Last: Lounge or Jobs would probably be a better place for this. Probably Lou... (by hanst99)
Still some trouble with overloading <<
 
So, I'm nearing the completion of this personal project and decided to rewrite some code then review the results with an object dump to an outstream, but overlo...
[6 replies] Last: Bah. Nvm. VC++ has issues with friend functions. I use the red underli... (by roberts)
How to compare two strings?
 
How could I compare two strings alphabetically? I want to be able to give my function two strings, string1 and string 2, and then be able to say something like:...
[1 reply] : If you use std::string, operator < and etc. will work. If you use cha... (by hamsterman)
book store inventory system
 
include <iostream.h> #include <iomanip.h> #include <conio.h> class library { char author ,title ; int price ; char pub ; int s; public: void getd...
[2 replies] Last: It's all good exept for what moschops said: use int main() with return... (by viliml)
File not passing to function.
 
This is my code in which i am getting some errors and my file is not passing to function. #include<iostream> #include<cmath> #include<fstream> #include...
[2 replies] Last: Yeah Its now working thanks man. (by bond5611)
Another SDL Input question
 
The SDLK_SPACE makes the character jump. While pressing the combinations " up + right" or " down + right" or "down + left" I can push 'space' and jump. Howeve...
[2 replies] Last: It does seem to be the case. I changed 's' to be jump and the arrow k... (by closed account zwA4jE8b)
February 2012 Pages: 1... 1314151617... 43
  Archived months: [jan2012] [mar2012]

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