49,757 Topics

Member Avatar for
Member Avatar for vandenzergen

Hello everyone, I really want to know what should I do first in making games using c++. We all know that c++ is the most widely used programming language in making games. But, there is still things which are not clear to me as of now. I'm still a newbie …

Member Avatar for vandenzergen
0
111
Member Avatar for vandenzergen

I'm having a problem on how to create a program on c++ that creates its own file and storage capabilities. I'm planning to have an interface like this so I put a little detail about the program just to give you the idea of what I actually mean... it goes …

Member Avatar for vandenzergen
0
162
Member Avatar for Grimshad

I'm looking for some help with some C++ code. I have working knowledge and understanding of code and coding in general, but don't actually program myself. I have 2 files TFGame and TFMenuConsole In TFGame I put [CODE]var config bool ToggleWarhead;[/CODE] and later put [CODE] PlayInfo.AddSetting(default.GameGroup, "ToggleWarhead", default.SIGPropsDisplayText[i++], 0, 1, …

Member Avatar for Grimshad
0
180
Member Avatar for clutchkiller

You are able to hide the desktop icons on xp by right clicking on the desktop and choosing to hide them, but how would you do it through c++? I was messing around with DestroyWindow and ShowWindow, but I cant figure it out. Any help? WinSpector is telling me that …

Member Avatar for Comatose
0
103
Member Avatar for sinduja

#include<iostream.h> #include<conio.h> void main() { int n,i,j,t,s; clrscr(); char sname[30],rating[60]; cout<<"enter no of songs in the list"<<endl; cin>>n; cout<<"enter song name and rating"<<endl; for(i=1;i<=n;i++) { cin>>sname[i]; } for(i=1;i<=n;i++) { cin>>rating[i]; } cout<<"The top songs are in the order:"<<endl; for(i=1;i<=n;i++) { for(j=i+1;j<=n;j++) { if(rating[i]<rating[j]) { t=rating[i]; s=sname[i]; rating[i]= rating[j]; sname[i]=sname[j]; rating[j]=t; …

Member Avatar for vmanes
0
117
Member Avatar for cam875

I am trying to figure out for my physics simulator how to give my object name a variable or something, ill show an example and the compiler flags it an error but all i am trying to do is pass it the value not the variable long atomID = 0; …

Member Avatar for cam875
0
115
Member Avatar for andreb

I was working with some c++ code from a site. When i try to link in dev c++ I get this. [QUOTE] [Linker error] undefined reference to `GameEngine::m_pGameEngine'[/QUOTE] The code compiles perfectly but does not link. [CODE]class GameEngine { protected: // Member Variables static GameEngine* m_pGameEngine; HINSTANCE m_hInstance; HWND m_hWindow; …

Member Avatar for Clockowl
0
115
Member Avatar for bamabambhole01

//cube.h #ifndef CUBE_H #define CUBE_H class Cube { public: Cube(); ~Cube(); void setSide(double s); double getSide(); double Area(); double Volume(); void Properties(); private: double Side; }; #endif ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´ #include <iostream> #include "cube.h" using namespace std; Cube::Cube() { } Cube::~Cube() { } void Cube::setSide(double s) { Side = s <= 0 …

Member Avatar for StuXYZ
0
163
Member Avatar for monere

Hello, I am a new beginner to c++. I am trying to launch an application in using the following command: system("clip100.txt") File clip100.txt got opened on my word processing software running and i had to exit from word processing to get my program continued. My question is: How can i …

Member Avatar for monere
0
127
Member Avatar for clutchkiller

Here is my code that i am working on. Upon running the exe, it asks the user for a temporary password. After that, the screen saver pops up. Upon exiting the screen saver, the console will ask you for the temporary pass that you entered in order to renable the …

Member Avatar for Comatose
0
110
Member Avatar for cppnewb

Hi, It's me again with another silly question:) I was wondering if there was a way using ofstream to not erase the contents of the file it is writing to and simply write at the end. Thanks! P.S. I'm using windows XP and Dev C++

Member Avatar for Freaky_Chris
0
119
Member Avatar for dwhite409

If you recall in the implementation of list: struct list_node_base { list_node_base* next list_node_base* prev ... [B]void hook(const list_node_base*);[/B] .... }; I wanted to look under the hood of the [B]hook[/B] function, but can't find it anywhere in the STL library or any reference to this method via Google for …

Member Avatar for dwhite409
0
161
Member Avatar for sydetys

HEADER; I am noob in programming, so keep it simple thank you :) I use VS 2008 pro SP1 OS is vista Ultimate x64 SP1...(SP2 beta I will try later) Which function is better and what are differences? 1. system () 2. CreateProcess () ...is there more choices? My goal …

Member Avatar for Freaky_Chris
0
252
Member Avatar for zedame

i'was asked to develop chat application using c++ anyone can help me finding tutorials/ articles/ walkthrough or what ever i can get that discuss this topic

Member Avatar for Freaky_Chris
0
112
Member Avatar for u8sand

Hello everyone... Recently, i tried making a puzzle solver. And it came out perfect. I wanted to try somthing harder so i went on to a sudoku puzzle solver. You see i checked a bunch of places and found that the best and easiest way to do it is with …

Member Avatar for algoboy
0
155
Member Avatar for u8sand

Hey guys. Another problem : ( Well you see, i was attempting to make an array that stores char's in a lets say 10 by 10 grid. Then i can display it Example: [code] char array[10][10] = { "----------", "| |", // ...... ext... "----------" }; for(int y = 0; …

Member Avatar for u8sand
0
95
Member Avatar for Swemp

Hi, I'm a newbie in C++ and i'm working on a project, but it doesn't work.. The C++ program should read numbers into an array, the numbers are in a txt file. Each array number : ex. array[1], array[2], array[3]... should get a number from the txt file. In the …

Member Avatar for Swemp
0
5K
Member Avatar for Clockowl

Hey guys, Could I "teach" my compiler to do automatic type conversions for me? So when I have this program: [code=cpp] #include <cstdio> #include <string> using std::string; int main(){ int x; string y = "1234567890"; x = y; printf("y: %s == %d\n", y.c_str(), x); return 0; } [/code] It won't …

Member Avatar for Clockowl
0
110
Member Avatar for Q8iEnG

Hi guys :), long time ^^ I have a question, I hope to get the answer :) "what is the name of all c++ exception handlers?" thanks in advance :)

Member Avatar for Q8iEnG
0
94
Member Avatar for Dannyo329

I'm working with structures, but somehow it skips one of the user inputs for the pie's price: [CODE]#include <iostream> #include <windows.h> #include <string> #include <conio.h> using namespace std; const int ESC = 0x1b; struct pie{ string brand; float price; string flavour; }pies[5]; int main() { cout << "Structures."; cout << …

Member Avatar for Bench
0
145
Member Avatar for clutchkiller

Could anyone inform me of how I would call the screen saver on windows xp? Edit: Just did some research on MSDN and found the WM_SYSCOMMAND, and i see something about calling the screen saver in there, but i am confused on how to use it. Any help? Thanks guys

Member Avatar for Freaky_Chris
0
183
Member Avatar for cppnewb

Hi. I'm new to the forums, and I have a quick question. I would like to add 14 days to the current system date in a program. Here is my code: char date[9]; _strdate(date); char time[9]; _strtime(time); cout << "The due date of your books is: " << date << …

Member Avatar for cppnewb
0
9K
Member Avatar for waldchr

HI For Christmas I got a book on game programming with allegro. I went through the process of setting up the files and ran, compiled, and linked the program only to find that depending on which compiler I used (Dev-C++ or VC++ 2008) it came up with different errors saying …

Member Avatar for waldchr
0
97
Member Avatar for tomtetlaw
Member Avatar for tomtetlaw
0
143
Member Avatar for cppnewb

Hi again. In one of my programs, I would like to put in a search type feature. I would like it, so if the user enters a book name, it returns the call number of the book. I would also like it ti display a message if the library doesn't …

Member Avatar for cam875
0
118
Member Avatar for RhinomanUK

Hi I'm having a problem reading in a file. I am using BCB6 Personal Edition under Win XP. The file is always read correctly up to the 4413th byte then the data is corrupted. I have modified the code from a fixed array size to use a vector so I …

Member Avatar for RhinomanUK
0
179
Member Avatar for viola

My interested area: C++/C#, WPF, LINQ, DB relevant(MS SQL) Moving forward towards: F#, Silverlight

Member Avatar for kanaku
0
20
Member Avatar for cppnewb

Hi Again. I have a password field in one of my programs. I would like to display the letters as a *. Does anyone have some code to achieve this?

Member Avatar for cppnewb
0
100
Member Avatar for Ronen444

Hi ! Some (weird) problem i got : I have a header file, InputHandler.h, which has one Class called InputH, and inside i have public: and a Void named Hi(). When i try to include InputHandler.h in PRPT.cpp, i get an error, weird one; The error says that i should …

Member Avatar for Narue
0
217
Member Avatar for karang

Hi I am writing a code in VC++ char* style = "color:#4D4DFF;font-size:9pt;font-family:Arial;"; char* semicolonsplit = ""; semicolonsplit = strtok (style,";"); But in the last line I am getting an error " Access violation writing location 0x0041606d." Am I missing something. Regards Karan

Member Avatar for Narue
0
112

The End.