49,757 Topics

Member Avatar for
Member Avatar for lucyaurora

Okay ...Ive learnt Iterations and If Functions Arrays (1 dim and 2 dim) Structures ...In C++ as of now ...(Im still in school learning) I know that a good game would require "classes"....but i dont currently know how they work... So is there any way I can come up with …

Member Avatar for LdaXy
0
456
Member Avatar for Fotis_13

Hi programmers! I'm new at c++ and i want help about a simple guessing number game. I want: [LIST] the player has 3 tries (the number is between 0 and 20)[/LIST] [LIST]if player doesnt guess the right number (in 3 tries), then the programm will close[/LIST] [LIST]if the player guess …

Member Avatar for Lerner
0
2K
Member Avatar for BCBTP

Hello everyone, I am currently taking up a project of making a Virtual Machine. I was wondering if anyone has any tips on making Bytecode interpreters, and Virtual machines. I am not really basing it on anything, I am just making a VM with 640k memory and about 8 32 …

Member Avatar for Schol-R-LEA
0
365
Member Avatar for alex905

Hi, I have to initiates a object to a variable in the private section of my class deceleration. The problem is that I can not add a try catch to it in this way. I Don't think I am explaining things to well (it's been a long day) so here …

Member Avatar for mrnutty
0
246
Member Avatar for Tcll

this is just a little project I'm working on for my converter I'll be asking for C++ to Py conversion since IDK C++ well enough to do it myself... but the project involves converting the current functions as well as writing opposite functions... (since the SDK only worries about writing …

Member Avatar for Tcll
0
436
Member Avatar for muse_squall08

[CODE]#include <iostream> //standard input and output #include <fstream> //file input and output #include <string> //for strings #include <exception> //catches exceptions #include <sstream> //stringstream comes from here #include <algorithm> #include <stack> #include <queue> using namespace std; bool writeFile(const string &data); //writes strings to file bool readFile(); //read file bool palin(const string …

Member Avatar for WaltP
0
2K
Member Avatar for webishop

I keep getting the undefined reference error when calling a c function from c++ code: void proxy(char *str); In my funcs.h file, I use the #ifdef __cplusplus extern "C" { #endif wrapper, and include funcs.h in my c++ code. I also declare the function as extern "C" void proxy(char *str); …

Member Avatar for webishop
0
1K
Member Avatar for ben1996123

Hi, I want to start learning OpenGL. I have searched for some tutorials and here is what I have done: 1. I downloaded the latest version of GLUT 2. I put the DLLs in C:\Windows\System32 3. I put the libs in C:\Program Files (x86)\CodeBlocks\MinGW\lib 4. Put glut.h in C:\Program Files …

Member Avatar for Moschops
0
557
Member Avatar for swagatjena

I have a datagridview which allows the user to select multiple rows of a table.Now i have to take the values of one column of all the selected rows and insert those into the sql table.how do i do that?

0
49
Member Avatar for mc3330418

With this function I'm finding the highest average, but after I find it I want to find the name that goes with the highest average. I'm pretty sure I need to use the index of the highest average but I don't know how to do it. [CODE] void findHighest(int numItems,string …

Member Avatar for Ancient Dragon
0
69
Member Avatar for omer620

Hi frnds I am having some kind of problem in strings.. I have to write a String program whose output is like this Let the string is :- Enter string : "Computer Programming" C Co Com Comp Compu Comput Compute Computer Computer P Computer Pr Computer Pro Computer Prog Computer …

Member Avatar for omer620
0
188
Member Avatar for smurfy

Hi , In Visual Studio CLI. I have randomly generated numbers(zero to nine) which are a,r,g,b . One by one they are meaningless . Together they create a color code for different products. For example : [ICODE] id a r g b i 1 1 5 9 i+1 6 0 …

Member Avatar for smurfy
0
145
Member Avatar for roona

Hay every one Hay everyone I need help I have project in subject programming languages about make one idea on two languages c and java . I have made it in java and c++ but I couldn't in c This is the code in C++ [CODE]// Link.cpp : Defines the …

Member Avatar for VernonDozier
0
236
Member Avatar for jeffpro

Alright, I need help for a shooting game I'm working on. I current have a box that is 3d ( x, y, z) I'm trying to perform a check to see if my cursor is inside this 3D box. I understand how to make it 2d by using the max …

Member Avatar for mrnutty
0
107
Member Avatar for kris kannan

hi, i want to know if there are any libraries for image/video processing in c/c++ with a compatibilty that it can later be adapted to DSP, without much difficulty. thanks in advance.

Member Avatar for kris kannan
0
407
Member Avatar for Tigerwatch

I've made a 3d game simulation with animation and all the controls. But whenever i jump, the player remains up in the air without coming back down. Also the player can simply walk through walls. I'm using " colonel - z " for the player and "universe.dbo" for the environment. …

Member Avatar for Tigerwatch
0
154
Member Avatar for harrisonbs1

Okay, so I have been searching around for a while and i haven't found much. I'm not asking for a code but I'm asking for a point in the right direction. So here is what i am trying to do. I am trying to make my own formborderstyle. As in …

Member Avatar for griswolf
0
111
Member Avatar for Halogen1

Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: [url]http://www.daniweb.com/software-development/cpp/threads/242338[/url] My situation is a bit different because I HAVE to use a combination of functions and a class in the …

Member Avatar for Halogen1
0
498
Member Avatar for Pelle_3

I am learning C++ .net programming and was wondering why the code for creating a messagebox is [CODE=C#]MessageBox.Show("Hello, World!");[/CODE] in C# and [CODE=C++]MessageBox::Show("Hello, World!");[/CODE] in C++. Why is the dot substituted with a double colon in the C++ code? My source: [url]http://msdn.microsoft.com/nb-no/library/z9w2f38k[/url]

Member Avatar for Pelle_3
0
434
Member Avatar for Labdabeta

A friend asked me how to write and use a DLL in C++. I told him that I had to check and make sure my understanding was accurate. So here I am. Would this work as a DLL: myDLL.cpp: [CODE]#include "myDLL.h" void DLL_EXPORT ConstructMyInt(myIntStruct &i){i.val=0;} void DLL_EXPORT DoSomething(myIntStruct &i){i.val*=i.mul++;} BOOL …

Member Avatar for Labdabeta
0
152
Member Avatar for learner guy

well i have made a .txt file (for save /reload blah blah ..) ..i want it blank before program runs ..how can i do it - or is there any way i can create a new file every time overwriting the existing file

Member Avatar for Dman01
0
13K
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
147
Member Avatar for MrEARTHSHAcKER

Hi, I'm playing around with pointers and I found out something. For example, I have the array of objects of structure, and wished to point to it over the pointer which already points to it ( pointer to pointer to array of objects. ). Confusing? Code: [CODE]struct person{int number;}; int …

Member Avatar for MrEARTHSHAcKER
0
200
Member Avatar for beckhris

Hello, I'm in a beginners c++ class and I need to write a program that calculates the area and perimeter of a triangle of sides: a, b, and c. The lengths of each side (values for a, b, c) are written in an input file (.txt), so the program has …

Member Avatar for WaltP
0
3K
Member Avatar for jaai
Member Avatar for jerl
0
148
Member Avatar for kartouss

hello, can anyone help me how to encrypt an image that is how the values in the image are read and saved in a file... I need to load an image and then the program will extract the pixel values and save it in a file and then the values …

Member Avatar for Zhassan
0
1K
Member Avatar for FiToKa

Hello, everybody! I've been struggling on implementing the Binary Tree data structure with some standard functions in it. After reading information from many sources and some work on my own, I've came up to this: [url]http://pastebin.com/B6Gtjb61[/url] Problems occur in the main funciton. What I can't understand is why does the …

Member Avatar for FiToKa
0
266
Member Avatar for jimmymack

Can someone please help me break down the following examples so they are easier to understand because I don't understand them at all. Many thanks in advance Evaluate the following: 1) (true && true) || false 2) (false && true) || true 3) (false && true) || false || true …

Member Avatar for v3ga
0
118
Member Avatar for smartcard

I am planing to outsource a project to create a business application, a CRM like system. Few says C++ and MSSQL while other .net and MSSQL. I would like to know what is the advantage going with C++ The system is going to be a web based platform.

Member Avatar for thines01
0
53
Member Avatar for Tigerwatch

hello guys! I'm programming in dark gdk and if you've read the dark gdk tutorials, it says in the game level section about importing levels from the fps creator. well i downloaded fps creator and even made my level but i cant get to know how i should use it …

0
56

The End.