49,761 Topics

Member Avatar for
Member Avatar for rfrapp

Let me start off by saying that this is homework, and I have most of it completed. However, I am stuck on how to convert decimal to hexadecimal. The assignment is to add two hexadecimal numbers and output the answer. If the length of the answer is greater than 10 …

Member Avatar for rfrapp
0
3K
Member Avatar for Labdabeta

I was just wondering how exit worked? Does it use some lower-level language feature in its implementation? Is it compiler-specific? What is it? (I am talking about the function in stdlib.h btw)

Member Avatar for Labdabeta
0
221
Member Avatar for badboy11

I need helping trying to retrieve data held in a [CODE]std::list<boost::shared_ptr<boost::any>>[/CODE] I am working on a Singleton Controller class with a private [B]std::list[/B]. Client class(es) will be able to [B]Add/Remove/Edit[/B] concrete class objects to be used by the program through this Controller class. The reason for using [B]boost::shared_ptr[/B] is because …

Member Avatar for mrnutty
0
385
Member Avatar for Nevicar

Hello everyone, I'm trying to figure out how to overload a function to solve the following problem: "Write two functions with the same name (overloaded function) that print out a phrase. The first function should take a string as an argument, and print out the string once. The second function …

Member Avatar for zeroliken
0
142
Member Avatar for SCass2010

Hi everyone, I'm not even sure if this is possible, but I seem to be struggling at the minute with it so here goes... I have a main.cpp where severeal different objects of different classes are created, such as say Log, ConfigManager, XMLReader and so on - what I'm trying …

Member Avatar for SCass2010
0
113
Member Avatar for lxXTaCoXxl

My project for my C++ class is to develop an application that will help me out in my programming life, and since I constantly have to use a calculator to determine the values in free fall acceleration I decided to write an application to do it for me. I was …

Member Avatar for DeanMSands3
0
860
Member Avatar for coonsquad20

I'm learning Win API and decided to make a tic tac toe game. The game is supposed to check to see if the left mouse button is down and where it is being pressed so it will know when and where to draw the X or O. But the X …

0
40
Member Avatar for jdh1231

I have a problem to solve, and I came so close with algorithm, but I am having hard time organizing them so they work. I will post the question and the codes I have. Can someone help me organizing them? The program is expected to read input information from a …

Member Avatar for thines01
0
165
Member Avatar for Ahmed2

Hi there I've got a problem with functions, where it seems that function call return zero instead of the actual variable value, I will appreciate any help from you guys. I will post the major code parts because the program is big. I get the totallength variable value right but …

Member Avatar for Ahmed2
0
234
Member Avatar for engineerchica

Hey everyone, I am working on a function that reads a text file (portion below) of data points arranged in two columns and stores the numbers only in an array of signal[2500][2]. The problem is, I need to do some search and replace on [I]some[/I] of the data points. Some …

Member Avatar for WaltP
0
220
Member Avatar for yongj

As some of you may know already, I've been trying to re-teach myself through the data structures component of C++. I'm currently in the chapter of 'Pointers' and eventually want to make my way through finish learning hash-tables/trees/sort algorithms. Could someone give me a sort of "First learn this, then …

Member Avatar for Kanoisa
0
118
Member Avatar for Ahmed2

Hi there I'm trying to ofstream (output) data to an excel file (csv), and I keep getting this error "file was not declared in this scope". Can you guys help me on this? where is the error? This is the output function, [CODE]void FileOutput() { int t; static float totallength=0; …

Member Avatar for Ahmed2
0
418
Member Avatar for Panathinaikos22

Hello, i have made this question again, but is something i really want to learn :/ and never i get an complet answer I know enought good C#/Java Windows programming, i also know C/C++ Console programming but i think is time to learn/play with C/C++ Windows Appis ... How i …

Member Avatar for jbennet
0
347
Member Avatar for subrata_ushasi

Hi all , I am trying to develope an autocad like application in C++ using code::block 10.05 and directx but code::block 10.05 is not supporting graphics . Any one can suggest ? Thanks in advance

Member Avatar for jbennet
0
258
Member Avatar for C++ programmer

Hi guys I have been wondering can we develop android apps on Qt? Do we have to learn Java inorder to program for android in Qt or All the programming will be done in C++. Actually I don't want to learn Java any recent because I am working on someother …

Member Avatar for jbennet
0
98
Member Avatar for razes_0230

Please help me to create an output like this Enter a number: 1 Number you entered : 1 Enter a number: 2 Number you entered: 1 2 3 Enter a number: 3 Number you entered: 1 2 3 sample program please?

Member Avatar for Lerner
0
341
Member Avatar for chaoz014

So this is my second project in C++, but I'm having some trouble understanding Recursive functions. We are supposed to write a program that has a recursive function. And the program should ask the user for a number. And then display the number of even digits that the number had. …

Member Avatar for Fortran IV
0
452
Member Avatar for DeanMSands3

[url]http://www.cs.stanford.edu/cslibrary/PointerFunCppBig.avi[/url] Main Page Link: [url]http://cslibrary.stanford.edu/104/[/url] (If this helpful to anyone, it is technically not trolling.)

0
66
Member Avatar for ruval002

ok so i have an array like this which contains an id, a myState of type State and pointer next which points to the next id [CODE] struct PCB { int id; STATE myState; Process *next; }; [/CODE] i have the following function which should decrement all the current values …

Member Avatar for WaltP
0
889
Member Avatar for yongj

I'm teaching pointers to myself through my book and I'm stuck on one of the practice problems. Here it is: [CODE]//What is the output of the following C++ code? int x; int y; int *p = &x; int *q = &y; *p = 35; *q = 98; *p = *q; …

Member Avatar for Eagletalon
0
183
Member Avatar for theBear

[code=c] #include <string> #include <vector> #include <iomanip> #include <istream> #include <fstream> #include "...\myUtils.cpp" void inputCases(string[], vector<double>); void inputPrice(string[], vector<double>); void displayReport(string[], vector<double>, vector<double>); using namespace std; int main() { double tmpCases, tmpPayRate; vector <double> cases; vector <double> payRates; ofstream file; file.open("salsaCase.txt"); string tmpName[5]; tmpName[0]="Mild"; tmpName[1]="Medium"; tmpName[2]="Sweet"; tmpName[3]="Hot"; tmpName[4]="Zesty"; char mans=0; …

Member Avatar for Cruize_Invades
0
2K
Member Avatar for geoffy0404

Hello I have been at this for a few days, and I have not figured it out but feel as if i am very close. I must create A program that takes a users input, then tells the user if that number is prime or composite, if composite it must …

Member Avatar for WaltP
0
984
Member Avatar for PressOnThis

I'm trying to find a way to display the favicon from the webBrowser in Visual Studio Windows Forms to a pictureBox. Can anyone help out?

0
89
Member Avatar for Breakbones90

I started writing this code as practice for my Computer Science class. The goal was to help with structs and arrays. But I have come to a problem. The file will compile, but returns a message saying "floating point exception." Doing research I see there could a few reasons, but …

Member Avatar for gerard4143
0
367
Member Avatar for programmer2112

So i need to create a win32 console program that basically asks a user to input certain information about random people...ie: height, shoe size, weight. after the user has entered the information for the first person, the user is then prompted to enter the same information for another person. eventually …

Member Avatar for yongj
0
175
Member Avatar for swissknife007

I am implementing a program where I want to store only certain part of the input string. for eg if the input string is 0123456789 I want to discard 4 AND 7 and store 01235689 Please my program requires an input string of 10000 characters so running time is very …

Member Avatar for mhd_arif123
0
202
Member Avatar for dakerao

Hello I'm trying to get my game to update the screen and draw graphics on its own I kind of made it happen but it still flickers which you can see in this video I made just too showcase this problem [URL="http://www.youtube.com/watch?v=9j_ZDHr1x_8"]http://www.youtube.com/watch?v=9j_ZDHr1x_8[/URL] Now I really don't know what is causing …

Member Avatar for dakerao
0
202
Member Avatar for zios007

I have to write a program that prompts the user to select (but not disclose) a number between 0 and 31 and then asks exactly five questions to determine the number the user has selected. Each of the five questions is posed by presenting a group of sixteen numbers, asking …

Member Avatar for zios007
0
241
Member Avatar for Megann1120

I'm working on a program that lists a numbers prime factors. I've finished the bulk of the work and all I have left is the first print where it says the number is prime or composite. I know the way I'm going at it is wrong because it wont work …

Member Avatar for Megann1120
0
294
Member Avatar for halien

Hi, I am trying to compile a C++ code (not mine) initially compiled on OSX, and I am trying to get it compiled on Ubuntu (11.04). I have absolutely no experience in C++, nor am I required to learn C++ (I usually do all my coding in Python) The person …

Member Avatar for halien
0
220

The End.