49,757 Topics

Member Avatar for
Member Avatar for dazexo

**Basically im very new at C++ and im having trouble with this, this error keep popping up, any suggestions? Thanks** #include "stdafx.h" #include <iostream> #include <string> #include <ctime> using namespace std; string menu(); { //this is where the problem is string sSel; do { cout << "Guess my Number Game\n\n"; …

Member Avatar for dazexo
0
270
Member Avatar for PinoyDev

Good day! I am currently developing a notepad storage to hold the players information! In notepad I have this data: Where data is seperated by a comma. First is the playerID, PlayerName, PlayerScore. 202, Andrie Velez, 4500 203, Joseph Josh, 3500 200, Carl J0sefana, 4000 Ive created a sample code …

Member Avatar for np complete
0
233
Member Avatar for Paul.Romero

I'm developing an SNMP agent using the API in VS2008. My agent runs on WINXP Pro 2002 SP3. The Network Management System that is polling my agent is based on NeuralStar. So far my agent is not satisfying the NeuralStar SNMP polling job. The only thing it tells me is …

0
39
Member Avatar for Bumpehh

ive been searching the web for a 2d free game engine compatible with c++, and i cant find any! So i would like to know, if there is any that you guys know about? most people direct me to lib librarys, but thats not what i want. btw, sorry if …

Member Avatar for myk45
0
231
Member Avatar for yasaman.jokar

i have some problem with 16 features for image ... 1) The horizontal position, counting pixels from the left edge of the image to the center of the smallest rectangular box that can be drawn with all “on” pixels inside the box. 2) The vertical position, counting from the bottom, …

Member Avatar for np complete
0
116
Member Avatar for Covinus

can anyone explain about assertion failure. i cant seem ti fix my problem with this error. it comes out when i try to load a file. here part of the code [code=c++] BDLL fileHandle::load() { char fileN[MAX_PATH]=""; OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.lpstrFilter = "Bitmap Files (*.bmp)\0*.bmp"; ofn.lpstrFile …

Member Avatar for fillygirl1213
0
188
Member Avatar for atch

Guys I've read http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx?PageIndex=4 great discussion and quite to the point frank critisizm of herb sutter. Does anyone know what his formal education is? I tried to google it out but draw blank from it.

Member Avatar for atch
0
232
Member Avatar for Bumpehh

This is a very simple Rock Paper scissors game i made. i showed it to my cousin and he played it for like 20 mins lol. Its against an AI and you pick by number, not words.

Member Avatar for m4ster_r0shi
0
1K
Member Avatar for claywin

Hello everyone! I've been having some troubles recently trying to work with frame independent movement (based on 300 pixels per second) and having the object collide with another. I'm still pretty new to this idea, but I don't know how I should go about having the character move back from …

Member Avatar for mike_2000_17
0
205
Member Avatar for usdblades

Here is a snippet of my code as this is my final and would hate for anyone to find this and copy my final that I am working hard on. Everything else is working and is good. My problem is trying to get the following code to display. void Employee::Calculate …

Member Avatar for NathanOliver
0
117
Member Avatar for SgtMe

Hi there, My friend and I are making a game, which is based on a tile engine we are making. The map is loaded into an array of integers to represent each different tile. However, in the map class, we need the variable `data` to hold the integer array so …

Member Avatar for SgtMe
0
174
Member Avatar for daniel1977

I am just curios if someone else has found the same issues I am having when compiling and running a simple C++ program in "codeblocks" everything is perfect but not successful when compiling and run the same program on Microsoft Visual Studio express. Is there any logic explanation here? Thanks, …

Member Avatar for triumphost
0
156
Member Avatar for Carpetfizz

Hello, I've been using Code Blocks as an IDE for a while and decided to switch to VS2010 Professional as I had obtained it throuh Dreamspark. Anyway, I'm terribly confused at the files it gives me for a standard Win32 Console App for C++. Usually, I'm used to seeing: #include …

Member Avatar for Carpetfizz
0
263
Member Avatar for phil.sutton

I am learning C++ and having difficulty getting my code to compile. I get errors while compiling using VS2010, everytime I attempt to fix the errors it seems to cause a snowball effect of compilation failures. Can someone look over the code and maybe give me some hints on how …

Member Avatar for phil.sutton
0
187
Member Avatar for capton

Please i need help with this piece of Qt code. It gives a compiled error "**empList' was not declared in this scope**" in the getValue() function. This has got me stucked for a couple of weeks now retarding the pace i'm learning the language. I would gladly appreciate any assistance. …

Member Avatar for rubberman
0
228
Member Avatar for Pyler

Do you need to implement a class in order for an object to access the class's functions/methods? When should you implement a class? When shouldn't you?

Member Avatar for rubberman
0
339
Member Avatar for Jarreds

This is the question: Write a program that converts from 24hour notation to 12hour notation.For example, it should convert 14:30 to 2:30 PM. The input is given as two integers. Verifies that a legitimate 24hour notation has been input by using the assert statement Please tell me if my code …

Member Avatar for TrustyTony
0
235
Member Avatar for adityasingh95

the question is: Wrtie a program to modify the elements of an array such that the elements that are multiples of 10 swap with the values present in the very next position. I wrote the following code: #include <iostream.h> #include <conio.h> #include <stdio.h> void main() { clrscr(); int a[20]; int …

Member Avatar for adityasingh95
0
204
Member Avatar for misi

I do have a function in C to give me a unsigned short random number from 0 to 65535. How can I make it to give me a greater number without much calculating? (r * 65536 + r) I've made a function in C to do that for me: static …

Member Avatar for misi
1
237
Member Avatar for nitishok

I have declared a structure st below with a struct variable arr[], an array of structs. Im trying to assign the value 1 to the 'num' variable, and values 1 to 10 to 'val' variable of the first 10 locations of array arr[]. And value 2 to 'num' and values …

Member Avatar for WaltP
0
284
Member Avatar for love_you_4rever

I got stuck :(. Can anyone tell me the **purpose** of this following code please? (Suggest descriptive names for the function and its parameters.) int mystery(int x, int y[], int z) { for (int i = 0; i < z; i++) { if (y[i] == x) return i; } return …

Member Avatar for WaltP
0
110
Member Avatar for DaedalusK71

Hello everyone and thanks in advance for your help. I am relatively new to programming and I have decided to do a project to solidify what I have learned in school. Here's my problem... I want to create a combobox where, when you make a choice another combobox becomes visible …

Member Avatar for Ancient Dragon
0
110
Member Avatar for triumphost

Why does my checksum not work? I use it on my computer with ATI graphics and it works perfectly fine. When I switch to a computer with Intel graphics, it starts doing random values and they aren't the same. I switch back to my comp, the values are still the …

Member Avatar for triumphost
0
217
Member Avatar for Xeros

Hi. I have completed a program that plays a Zero Gravity Floating Connect Four. I.E. it can take checkers from the bottom, top, left, or right sides. It works, however, the win conditions do not seem to be working. I am not sure where the problem lies. #include <iostream> using …

Member Avatar for WaltP
0
1K
Member Avatar for Pyler

Could some one point out what's wrong with the classes of this program? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor int surface_area(); int volume(); void set_dim(int ,int, int); }; //implementation box::box(){ int height; int width; int length;} box::int surface_area(){ int …

Member Avatar for WaltP
0
2K
Member Avatar for logicmonster

I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered. I just started C++ this week and have no prior experience …

Member Avatar for lance p
0
305
Member Avatar for phorce

Hello, I'm just wondering whether or not, it is possible to get the vector Dimensions without them being set? Basically, I'm converting some matlab code and there's a function size(VECTOR) which get's the dimentions of the vector being passed. For example: #include <iostream> #include <vector> using namespace std; int main(int …

Member Avatar for WaltP
0
124
Member Avatar for Roshaan.N

Hi, i am new on vb.net.i want to link two forms. a button on form 1 when clicked it opens form 2 but not in new windows but it replace form 1 on the same window.

Member Avatar for Reverend Jim
0
67
Member Avatar for hhilo2002

Hi all, class A { public: A(); ~A(); } class B { public: B(); ~B(); private: A *a; ->declares a pointer to class A object A a; -> holds the class A object } Whats the difference between the 2 type of declaration of a class A instance? Are there …

Member Avatar for neithan
0
192
Member Avatar for coolikedat99

I am trying to create a program that converts a fahrenheit number to a celsius number, and convert a celsius number to a fahrenheit number. It takes user input and decides which sub-program to run depending on which letter is entered. Once it decides this, it asks for the number …

Member Avatar for NathanOliver
0
294

The End.