Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
12% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
9
Posts with Downvotes
3
Downvoting Members
7
5 Commented Posts
0 Endorsements
Ranked #2K
~15.7K People Reached
Favorite Tags

44 Posted Topics

Member Avatar for nuclear

I'm using fstream to read words from a file and I can't just read the whole word like so: ifstream ob("file.txt"); string word; ob >> word; But I need to somehow specify to read 20 positions, even though there might be just spaces included. So I was trying to do …

Member Avatar for vijayan121
0
187
Member Avatar for nuclear

I'm using the Guichan lib and I was trying to run the "First application with Guichan, OpenGL and SDL" example, which is located here [Click Here](http://guichan.sourceforge.net/oldsite/getting-started.shtml) . Everything was fine exept when I exit the program and delete all the pointers which were allocated with the "new" and because of …

Member Avatar for Lucaci Andrew
0
165
Member Avatar for nuclear

I need to use forms, widgets etc. in my program which already takes care of creating a window and such. So the question is, would it be okay to use Windows lib to add the needed features, such as a form with a few widgets without any errors, memory leaks …

Member Avatar for Ancient Dragon
0
173
Member Avatar for nuclear

To be specific I'm trying to implement this into a small game. What I'm thinking of is having a base/default class for derived objects such as player, enemies, tiles and so on and later the derived classes would inherit this base class and add whatever is needed depending on the …

Member Avatar for Despairy
0
195
Member Avatar for nuclear

So I was trying out SDL_gfx lib and tryed using the rotozoomSurface() [Click Here](http://www.ferzkopp.net/Software/SDL_gfx-2.0/Docs/html/_s_d_l__rotozoom_8h.html#a3cb0c11d5edc929579c807dc7612348c) which should've rotated my surface at runtime, but it seems that whenever I do that my surface turns invisible. It doesn't matter if I predefine the rotation or use it at runtime, the same happens, I've …

Member Avatar for nuclear
0
234
Member Avatar for nuclear

Maybe I'm just missing something but I was thinking what do you call something like a Windows Form Application in Visual Studio where you can drag and drop and stuff like that. Do you call that an API or SDK or GUI or something else? By the way, as I …

Member Avatar for mike_2000_17
0
246
Member Avatar for nuclear

I had this talk with a friend a while back and now i remmember that he said that C# is like a newer version of C++, but i think thats not correct, since C, C++, C# is kinda all oriented in this or that, what do you guys think of …

Member Avatar for mike_2000_17
0
162
Member Avatar for nuclear

I have no working experience but i do have some knowledge in programming and web development. Note that i cant work at a company or such right now so i think freelancing is the best choise for me. I think it's much better to list what kind of projects and …

Member Avatar for nuclear
0
285
Member Avatar for nuclear

I was just wondering why do we exactly call glTranste command if its possible just to increase objects x, y or z. And its even stated in this tutorial: http://nehe.gamedev.net/tutorial/particle_engine_using_triangle_strips/21001/ that its even faster to only use Vertex3f() instead of resetting the Modelview Matrix. Anyways, maybe its just something particular …

Member Avatar for nuclear
0
264
Member Avatar for nuclear

Just wanted to know if we need to texture map the texture on the model with code or is it better to just import a model with textures already on him? (considering its even possible)

Member Avatar for mike_2000_17
0
198
Member Avatar for nuclear

So i was simply following one of the opengl tutorials - http://nehe.gamedev.net/tutorial/loading_and_moving_through_a_3d_world/22003/ So everything works completely fine except one thing, when i load in textures with SOIL lib its not completely correct, but with GLAUX lib it works just fine but i dont prefer using GLAUX. Here is what i …

0
148
Member Avatar for nuclear

It seems that i dont fully comprehend how rotation works. So leys say i have a cube and i do this: x = 90.0f; rotatef(x, 1.0f, 0.0f, 0.0f); Notice that my code here may be not all correct, its like that just to symbolize what i mean. So by doing …

Member Avatar for nuclear
0
4K
Member Avatar for nuclear

Straight to the point, I am using SOIL (http://www.lonesock.net/soil.html) library to upload images into OpenGl. Loading textures works fine but there is this thing i dont fully comprehend. Lets say I load an image into OpenGL via SOIL and I want to reuse the same image over few other textures …

Member Avatar for nuclear
0
2K
Member Avatar for nuclear

So the function: [CODE]glLoadIdentity();[/CODE] resets the matrix, so for instance we do this: [CODE]glMatrixMode(GL_PROJECTION); glLoadIdentity();[/CODE] how exactly does this work, it seems that we set the matrix and then just return it to the way it used to be.

Member Avatar for Labdabeta
0
225
Member Avatar for nuclear

Example code: [CODE]HWND CreateButton(const HWND hParent,const HINSTANCE hInst,DWORD dwStyle, const RECT& rc,const int id,const ustring& caption) { dwStyle|=WS_CHILD|WS_VISIBLE; return CreateWindowEx(0, _T("button"), caption.c_str(), dwStyle, rc.left, rc.top, rc.right, rc.bottom, hParent, reinterpret_cast<HMENU>(static_cast<INT_PTR>(id)), hInst, 0); }[/CODE] The part I dont get is: [CODE]dwStyle|=WS_CHILD|WS_VISIBLE;[/CODE] So the question would be why do we use '|' and …

Member Avatar for VernonDozier
0
244
Member Avatar for nuclear

I'm trying to use Box2D lib with SDL lib. NOTE that I only get the errors below after I link in SDL too. I think i link everything accordingly but in the end when I write up some code i get errors like: 1>------ Build started: Project: box2d test2, Configuration: …

Member Avatar for Ab000dy_85
0
545
Member Avatar for nuclear

[B]On visual studio 10:[/B] I've tryed out some code and everything was fine, but when I use this line: [CODE]sf::RenderWindow App( sf::VideoMode ( 800, 600, 32 ), "Hexagon Puzzle Thing" );[/CODE] Or anything with RenderWindow I get an: Unhandled exception at 0x76adfeb8 in SFML + Box2D Project.exe: 0xC0000005: Access violation …

0
89
Member Avatar for nuclear

Hi, just wanted to share what I've been doing and ask for some friendly/unfriendly advice :) . Some time ago I've started out with C++, learned the basics and stuff. Then I took up SDL, learned the basics and stuff too, made a few bigger/smaller projects and just recently I've …

Member Avatar for AndreRet
0
285
Member Avatar for nuclear

I'm using SDL to make a game and I'm using frame independent movement, everything works fine with no gravity or acceleration: [CODE]boxOffsetY += yVel * ( DELTA.get_ticks() / 1000.f );[/CODE] The box moves accordingly, no matter what frame rate i use. But when i try to add gravity: [CODE]yVel += …

Member Avatar for mike_2000_17
0
151
Member Avatar for nuclear

Hi, I would like to get an advice, lets take SDL lib as an example. Recently I've been declaring sprite sheets that certain classes use ( player, enemy... ) globally and thought that a better way would be to load sprite sheets inside a class thats using it but if …

Member Avatar for Schol-R-LEA
0
151
Member Avatar for nuclear

Theres this thing that i dont fully understand. Im using this tutorial: [url]http://lazyfoo.net/SDL_tutorials/lesson08/index.php[/url] and i in here we first set up some surfaces with text and then asign their value to the message and then for some reason we have to reset the message value to 0 in order for …

Member Avatar for raptr_dflo
0
487
Member Avatar for rockerjhr

You can simply open the ifstream in the function without passing anything. Why do you use that loop, is there a -1 in the file your reading from? If you want to read the whole file a better way would be: [CODE]while ( arg >> x ) { //... }[/CODE] …

Member Avatar for nuclear
0
161
Member Avatar for f4fjks

Hi, can you give us more information about your programming experience. It's hard to suggest something when I dont know that :) .

Member Avatar for StuXYZ
0
120
Member Avatar for ChrisMackle

You could try to do more difficult calculations, you could create a function for it, make the user to enter the values required, send it to a function and make it return the answer.

Member Avatar for WaltP
0
185
Member Avatar for lbgladson
Member Avatar for WaltP
0
137
Member Avatar for nuclear

Trying to do some basic "Game of life", but for some reason i'm getting some weird results, the code: [CODE]#include "stdafx.h" #include "stdlib.h" #include <iostream> using namespace std; #include "windows.h" const int V=30;//Vertical const int H=40;//Horizontal char A[V][H]; int ne=0; //Set all to dead void setDead() { for (int i=0;i<V;++i) …

Member Avatar for nuclear
0
702
Member Avatar for edchem9

I dont think it matters, atleast in this case, or maybe you mean something else, you should add and show some code to make your problem more clear.

Member Avatar for Anirudh Rb
0
172
Member Avatar for clousot
Member Avatar for Onlineshade
0
189
Member Avatar for synaps

I would recommend to go take a look at [URL="http://www.youtube.com/user/antiRTFM?blend=1&ob=5#p/c/1D10C030FDCE7CE0"]antiRTFM[/URL] tutorials. These tutorials are really great and easy to understand.

Member Avatar for cherrymae.calma
0
205
Member Avatar for 3YEARS

[CODE]#include "stdafx.h" #include <iostream> using namespace std; int main() { int i,j,k; for ( i=1; i<5; i++ ) { for ( j=0,k=i ; j<i ; j++,k-- ) { cout << k; } cout << "\n"; } char f;cin>>f; return 0; } [/CODE] Is this good for you, or did you …

Member Avatar for Onlineshade
-6
150
Member Avatar for uaremine

You should read a book or watch some tutorials, its something basic and wont be hard to learn.

Member Avatar for Onlineshade
-1
138
Member Avatar for nuclear

I was watching a tutorial that says that we first need to check if any direction key was pressed, and only then we check which key was pressed, like this: [CODE]while( running == true ) { while( SDL_PollEvent(&event) ) { if ( event.type == SDL_KEYDOWN ) //checking if any key …

Member Avatar for gusano79
0
283
Member Avatar for meyumi_lelouch

You mean after the user chooses one hero and after that he should be able to choose another hero, right? If yes then this should work for you : [CODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "conio.h" using namespace std; int main() { int choice,desc; char repeat; while(true) { cout<<"\t\t\t\tPhilippine …

Member Avatar for Anuradha Mandal
0
871
Member Avatar for Anuradha Mandal

Hm, not sure if i understand what are you talking about, are you saying that the program just ends after the 12th loop or something else, please be more specific.

Member Avatar for WaltP
0
136
Member Avatar for Nelli71

Be more specific, ask what part you dont understand. No one will do the job for you.

Member Avatar for Nelli71
0
163
Member Avatar for Anuradha Mandal

First of all, there is no need for 3 loops, second, think if so many integers are really necessary.

Member Avatar for Anuradha Mandal
0
106
Member Avatar for nuclear

So i just started learning SDL and came across "Event driven programming", just wanted to be sure if i understood the tutorial correcly. So lets say by adding: [CODE]SDL_Event event;[/CODE] i add lets say a container that keeps track of every event i do? After that i start using: [CODE]while …

Member Avatar for nuclear
0
284
Member Avatar for dwolvin
Member Avatar for ksm092

Not sure if i understood correctly but perhaps instead of line: [CODE]str_number >> str_description;[/CODE] you should add: [CODE]getline(str_number, str_description);[/CODE] This will save the whole line into str_description.

Member Avatar for nuclear
0
1K
Member Avatar for nuclear

Hello everyone. Im a total noob at programming and thought i could join a community with the same interests. Right now i'm trying to get something done with C++ and im into Pascal too for school reasons. I only scratched the C++ so i expect to get some answers if …

Member Avatar for jingda
0
60
Member Avatar for nuclear

Its something really basic, but for some reason i cant get my dinamic array to work. Keep getting a message that i need to add the "[]", but then i would create a static array, not a dinamic one. The code: [CODE]program Noname0; var arr : array of integer; begin …

Member Avatar for Duoas
0
126
Member Avatar for nuclear

Just recently started learning SDL and have this problem, this program should properly display my background and message on the screen, but instead its just a black screen. Did the Blit, did the Flip, maybe im missing something? Heres the code: P.S i know i might forgot to add some …

Member Avatar for nuclear
0
178
Member Avatar for GummyBear

What do you want to repaet here, the whole program perhaps? There are two forms of loops - While loop and the For loop but i think it would be much simpler if you just googled them, i mean its really a basic thing and its really not hard to …

Member Avatar for GummyBear
0
150
Member Avatar for nuclear

Hello. First of all i know that this was asked like a million times, but i just cant get the right answer anywhere, yes, even on google. So the thing is that i learned the C++ basics and my learning process was only in a Console Application. And now for …

Member Avatar for nuclear
0
118

The End.