49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
**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"; … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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. | |
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. | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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. … | |
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? | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.