49,761 Topics

Member Avatar for
Member Avatar for 'AnKo

Hey there! I just want some hints for some program I'm trying to make. Say we have a 1GB file full of 0 and 1. What I want to do is to find the patterns of them and rank them. It wouldn't seem so complex if I had to deal …

Member Avatar for np complete
0
106
Member Avatar for Alexkid

Hi there I have a question about pointers, i have a functions that takes a path to a txt file, extracts whats in it into an array and returns the array. As i understand it you can't actually pass the array, you have to return the pointer to the array …

Member Avatar for Alexkid
0
254
Member Avatar for Eagletalon

Hey Everybody, Allright my setting is like this: I created a derived MVC program using C++ and QT on Visual Studio 2008, that sends multiple instructions to our ERP system through an external program... On each command posted this way the user application needs to wait for a return string …

Member Avatar for Eagletalon
0
574
Member Avatar for Peppercat101

I am writing a c++ program using MPI and I have been having trouble passing a array with send and receive. What I have so in my code(sorry if it is a messy(its almost 4am and i am very tired) /* * File: main.cpp * Author: Melissa * * Created …

Member Avatar for ravenous
0
829
Member Avatar for np complete

This is a sample code using symbolic C++. #include <iostream> #include "symbolicc++.h" using namespace std; int main(void) { int i; Symbolic x("x"), y, z("z"); y = (x + 2)^3; cout<<" y = "<<y; for ( i = 0 ; i < 1 ; i++) { y = df(y,x); cout<<" y …

Member Avatar for np complete
0
329
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
272
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
235
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
189
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
206
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
236
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
205
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
239
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
285
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
219
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

The End.