49,757 Topics

Member Avatar for
Member Avatar for mikelle

[code]// Lab 6 // This program tells what coins to give out for any amount of change // from 1 cent to 99 cents using three coin denomination: quarters, dimes, and // pennies. #include <iostream> #include <fstream> // function declarations istream &getData(istream &is, double &amount); void displayResults(ostream & os, double …

Member Avatar for Ancient Dragon
0
97
Member Avatar for angelsherin

HI friends, i need to create a subkey in windows registry and write some data also i need to access the data which i write...Plz send me the code with the header files or namespace which i have to include...i am working in vc++.net (unmanaged applications)...Plz help me...thanks in advance...sherin

Member Avatar for Ancient Dragon
0
94
Member Avatar for tootypegs

hi, I was wondering if it is possible to get the last write, modified and create times and dates for registry keys and values? The below registry key is the one im interested in. I have a program that reads the value of this key, but I would also like …

Member Avatar for mitrmkar
0
100
Member Avatar for Stogey

First of all, introductions. I'm a 17 year old trying to learn programming in C++, mainly to help further my chances of getting into the game design/creation field. Right now I only have an intermediate understanding of one beginners C++ book, "Beginning C++ Game Programming", by Michael Dawson, but I …

Member Avatar for Ancient Dragon
0
109
Member Avatar for USUAggie

Hello all, I was wondering if you all could help me out with a Binomial Queue problem I am having. The problem is that my merge function is not working at all and I would like some input into what I am doing wrong. Here is my merge function: [code=c++] …

Member Avatar for tesuji
0
172
Member Avatar for Clockowl

Hi guys, I'm having this weird error with undefined references to static variables, and was wondering what I'm doing wrong. Here's the header: World.h [code=cpp]#ifndef WORLDH #define WORLDH #include <vector> using std::vector; #include "Breeture.h" class World{ friend class Breeture; public: World(vector<Breeture*> *initialBreetures); World(unsigned int mutChance, unsigned int breetures); void NewBreeture(const …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Evan M

I have a header file causing me several errors. It contains a class definition, then I have a *.cpp file with the function definitions. Header: [CODE]#ifndef DOT_H #define DOT_H #include "SDL/SDL.h" #include <vector> class Dot { private: int x, y; int xVel, yVel; vector<SDL_Rect> box; bool check_collision( vector<SDL_Rect> &A, vector<SDL_Rect> …

Member Avatar for Evan M
0
516
Member Avatar for Black Magic

Hey, My want to make creation this time is a program where you would ask the user for a website and then they would input it and then IE/FF would open up and your done!. Just I'm not sure how I would achieve this. Just point me in the right …

Member Avatar for Ancient Dragon
0
102
Member Avatar for wtf???

ok dont make fun of me :S im trying to make a calculator in visual c++ but dont know what im doing could some one tell me how to make it so when i click a button it shows up in the text box

Member Avatar for Dave Sinkula
0
61
Member Avatar for Q8iEnG

Hi guys :) I'm just wondering how to start doing this problem? Converting from Infix notation to Postfix one (Pastfix Calculator) Of course in C++ using stack! Any Idea how to implement the code? thanks :)

Member Avatar for Q8iEnG
0
147
Member Avatar for wtf???

could someone show me how to read more then 1 line of text in a file and print it on the screen im kinda new at this tho i no how to do 1 line using namespace std; [CODE]int main() { system("COLOR 5"); system("TITLE tempature converter"); double dfirstNumber, danswer, firstNumber, …

Member Avatar for Narue
0
86
Member Avatar for antona
Member Avatar for antona
0
497
Member Avatar for wtf???

im new with c++ and dont know much but want to save the answer to the program i made when i do it names the file ÿÿÿÿ also the type of file is just called file how can i make it like .txt or somthing also just ignore the useless …

Member Avatar for wtf???
0
204
Member Avatar for balla4eva33

Okay, I've got two files: a main and a header to go with it. I'm not too far into it yet, but for some reason I'm having problems with the string. Am I declaring my strings incorrectly? Am I missing a header file from installation of Visual Studio? Am I …

Member Avatar for CoolGamer48
0
152
Member Avatar for Black Magic

Hey, I have seen some code examples were people include there own files, e.g [code]#include <myFile.h>[/code] do i just have to save a file called myFile.cpp? and if so can i declare a function in myFile and then use it in untitled1 without declaring it just including myFile. Thanks.

Member Avatar for CoolGamer48
0
220
Member Avatar for Jennifer84

I have Created a Form1. On this Form I have a button that opens Form2 like this: [code] Form2 ^form2 = gcnew Form2; form2->Show(); [/code] Now if I click on Form1, Form2 will "dissapear" under Form1. What I wonder is, if it is possible to click on Form1, but stil,l …

Member Avatar for Jennifer84
0
120
Member Avatar for wtf???

i spent a long time trying to fix this probably somthing stupid but please help me. i dont see any problem but its probably somthing stupid. it compiles ok and when i run it it works until i get to the equations it prints somthing like 1.62111e-307 here is my …

Member Avatar for wtf???
0
113
Member Avatar for pmzila

Hey People I m working on a project that addresses the following using C++: We got computers at science centres with laser show displays. We want a small programme to enhance the displays. We want to use the computer as a normal computer. If you don't use it the screen …

Member Avatar for Shaun32887
0
136
Member Avatar for driplet

Hi there: I need to copy character data from one class A to another class B. In Class A, I defined a character variable: char v1[30]; In Class B, I defined another character variable: char v2[30]; In Class A, I read v1 from a txt file and want to copy …

Member Avatar for Dave Sinkula
0
168
Member Avatar for the_virus

Hello! Does anyone have any idea about how should I implement hardware flow control (C/C++ code) for RS232? How to set CTS/RTS signals? Thanks!

Member Avatar for Ancient Dragon
0
76
Member Avatar for aaaaaa1

Hi, I have a problem, if any body can solve it, please help me please urgently.Thanks... You are going to implement the doubly linked list (DLL). Your task is to simulate a workbench robot for wagon construction. Assume your DLL is a train with red, green and blue wagons. The …

Member Avatar for Ancient Dragon
-2
143
Member Avatar for softjaddyhard

I have difficulty on how to make a program counting word occurences on c/c++ language database. Could anyone help me for this?

Member Avatar for Narue
0
79
Member Avatar for mikelle

[code=cplusplus] //Lab 5 Ray Perales //This program will compute a user's hat size, jacket size, and waist measurement // based on a three function modular program. #include <iostream> #include <iomanip> #include <fstream> #include <cmath> // Prototype declarations double findHatSize (double height, double weight); double findJacketSize (double height, double weight, int …

Member Avatar for ivailosp
0
116
Member Avatar for angelsherin

Hi friends, Kindly help me in this...i have to print the values of input and languagepair i tried this first CString Add(CString input,CString languagePair) { CString url ; url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= %s &langpair= %s ", input, languagePair); } i got error then i tried this CString Add(CString input,CString languagePair) { CString url …

Member Avatar for Aashath
0
127
Member Avatar for titaniumdecoy

I did some searching on this topic but couldn't find anything definitive. Are basic types automatically initialized to 0 in C++ when allocated via [icode]new[/icode]? For example, are all values of nums guaranteed to be 0 in the code below? [icode]int *nums = new int[10];[/icode]

Member Avatar for Narue
0
104
Member Avatar for CoolGamer48

What's the difference exactly between opening a file stream in the default text mode and opening it in binary mode? The cplusplus.com article on file i/o mentioned a few things, but I really didn't get the gist of it. Could someone explain it? Thanks.

Member Avatar for hacker9801
0
446
Member Avatar for FTProtocol

[CODE=c++] #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078") char exeData, DecString, CurrentCHAR, CHARCrypted; char FinalSTR, Spliting, szStr, szStr2, szStr3; bool CryptER; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Havnt gotten up to this yet return 0; } void TempPath() { char WindirS[255], TEMP; TEMP = GetTempPath(255, …

Member Avatar for ithelp
0
238
Member Avatar for chetan1989

Please help me I am a new user to linux and has made a project in eclipse IDE for linux. The project is running in the IDE but how am I supposed to make a executable for this???

Member Avatar for ivailosp
0
194
Member Avatar for Rydel

Hi, I need to know how to make a C++ App install something into the start menu. Well... What I'm trying to do here, is make a program that will simply create a batch file into a start menu folder. I know how to create the batch file using C++, …

Member Avatar for Rydel
0
64
Member Avatar for lulusweety

I have a code as below // pointer to functions [code=cplusplus] #include <iostream> using namespace std; int addition (int a, int b) { return (a+b); } int subtraction (int a, int b) { return (a-b); } int operation (int x, int y, int (*functocall)(int,int)) { int g; g = (*functocall)(x,y); …

Member Avatar for Ancient Dragon
0
91

The End.