49,766 Topics

Member Avatar for
Member Avatar for MasterGberry

So I made a program, and have thoroughly tested the bugs out, and now finally figured out how to make a release build for my grandfather to see. So he tries running it and it crashes on the first input. I was told i may need to send him the …

Member Avatar for MasterGberry
0
76
Member Avatar for jaglever

I need to read a file which looks like this: model=binomial steps=1 time horizon=1 S=101 u=1.2 d=0.95 r=0.03 number of instruments in portfolio=2 instrument=option exercise=european position=short type=put strike=98 expiry=1 instrument=option exercise=european position=long type=put strike=10 expiry=1 and i just need to read everything what is on the right site of '=' …

Member Avatar for VernonDozier
0
222
Member Avatar for nickoooname

Hi Guys, Im currently working on a school project but im stuck, if worked on this problem for over 4 days now and i cant fix it. Using Direct3D 9, Visual studio 2010, im trying to make create a heightmap. Im using a bmp file. Problem: the heightmap doesn't show …

0
131
Member Avatar for alex-VX

when i try to compile stuff i get this [code=c++]c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2143: syntax error : missing ';' before '{' c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2871: 'vc_attributes' : a namespace with this name does not exist c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2447: '{' : missing function header (old-style …

Member Avatar for jonsca
0
477
Member Avatar for sahil1991

hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some …

Member Avatar for sahil1991
0
215
Member Avatar for LevyDee

Hi all, the setup is as follows: -One base class -My top layer class that holds: -Four derived classes from said base class(four different types of objects that all derived from my base class) Is it possible to have a function in my top layer class that has one object …

Member Avatar for LevyDee
0
94
Member Avatar for freakyboard

[CODE]class x{int a;}; class y:public x{}; main(){y k; k.a=3; } [/CODE] How can I access "k.a"? PS: You can't change or omit any part of the code. a have to be private. Member access specifier have to be public ( class y::public x ). You can add functions to x …

Member Avatar for embooglement
0
122
Member Avatar for matthewkeating

Hello, I am looking into testing the performance of different numerical datatypes like double, integer, float, etc and see which one is the fastest. Is there a way to do this in C++. Time the time it takes to do basic arithmetic with numbers. Starting and end a timer within …

Member Avatar for mrnutty
0
127
Member Avatar for MasterGberry

I know there is an easy way to do this in C#, but i was wondering about C++. If I want to have an ifstream object defined that will read the input of a file, but i want it to read backwards. So basically here is the format I have. …

Member Avatar for MasterGberry
0
105
Member Avatar for Juginx

Hey First: How to get Length of textbox(how much sings have text) @edit : NVM first! Secound: I have Film Duration 00:00:22 and i must add that to xx:xx:xx how i can do that?

0
59
Member Avatar for COKEDUDE

This does a nice job of explaining headers. [url]http://www.codeguru.com/forum/showthread.php?t=344569[/url]

0
66
Member Avatar for MasterGberry

I am getting external link errors with the static consts below. Couldn't figure out what to do, would appreciate help :) [CODE]// Declartion of Order class class Order { private: // all of the different combo #s int a, b, c, d; int e, f, g, h; int i, j …

Member Avatar for MasterGberry
0
141
Member Avatar for Stefano Mtangoo

forgive me buddies if it is childish question, I cannot find good tutorial explaining it. So bear with me. My questions are, how does forward declaration differ from normal include which I'm used to? Also, where do we use it and what are limitation of the two? Lastly is there …

Member Avatar for Narue
0
106
Member Avatar for Jelte12345

I would like to know how to check for a keypress/keydown, so I can pause a loop when that key is pressed. I found something on the [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress(v=vs.71).aspx"]msdn website[/URL], but I don't really understand any of that. Can someone explain it to me in newb language? Or show a piece …

0
53
Member Avatar for L.sha

Hey, I Have a code to implement digital logic circuits , using linked-list. I have managed to build a simple program to work on 3 gates, which gives the user the option to choose between the gates and enter the kind of operation he wants and the values also. The …

0
75
Member Avatar for indr

hi, i created a linked list. it just adds values to the list called "source" and copies it to another list called "destination", it also deletes the values which is found in the source list and prints the source list again. link_list.h [CODE] #ifndef LINK_LIST_H #define LINK_LIST_H class link_list { …

Member Avatar for indr
0
223
Member Avatar for Jelte12345

I am creating a creating a program which needs the ability to make the get stream pointer jump to a specified line in the textfile it has opened. For example line 153. The lines have a variable length and contain only numbers. Is there a way to do this and …

Member Avatar for arkoenig
0
560
Member Avatar for Cup of Squirrel

Ok, time to get off my ass and learn C and C++. However, I'm having a bit of trouble finding a free compiler; I'm a newbie so it needs to have a friendly and explanatory GUI if possible. Just post name and/or link, thanks :D

Member Avatar for mslade
1
2K
Member Avatar for kunal2020

hi ,, i am kunal ,, n m a 3rd year b.e. student ,, really in need of mini projects on c as well as c++ .. can u plz plz help ??

Member Avatar for Celtrix
-1
114
Member Avatar for johnray31

Hi guys, I was trying to use inline function and i put inline function definition in .cpp file by using inline keyword like below.. [CODE] class SomeApp { private: SomeApp() { } public: returnType_t SomeState(); }; inline returnType_t SomeApp::SomeState() { code lne 1... } I was trying to access SomeState …

Member Avatar for Fbody
0
306
Member Avatar for viandante

Hi all, I am trying to modify sqliteman. I need to add a module able to import plug ins made in python. Mainly, this is in order to have some sort of powered Excel where data are stored in a DB and macro are written in Python and can have …

Member Avatar for viandante
0
126
Member Avatar for AmerJamil

first of all please any one tell me what is a armstrong number. i have a problem statement in c++,cant find any logic to work on it.. can any one give me some hints to do it? please also explain my problem statement in simple wordings thats whats my problem …

Member Avatar for Ancient Dragon
0
166
Member Avatar for Juginx

Hey again :p I use OpenFileDialog to open files. When i open file then how i can get that length video.(i open video files)

Member Avatar for Juginx
0
126
Member Avatar for cjjack88

Hi, I am doing an assignment about binary search tree. I have problem with remove the root in binary tree. When i remove the root of the binary tree and I view the binary tree in In-Order Traversal, my program will stop running. [CODE]void myCarSystem::remove(string m) { //Locate the element …

Member Avatar for troyduff281
0
3K
Member Avatar for ashishchoure

Hi Guys, Is this right to say Heap is RAM and Stack is Pagefile(HardDrive)? Sorry for silly question. :?:

Member Avatar for ashishchoure
0
169
Member Avatar for TSims11

Hi again, I've run into a problem with an if statement in my code. Here is the code: [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { if ((textBox1->Text == ("")) && (radioButton1->Checked == false) && (radioButton2->Checked == false) && (radioButton3->Checked = false)) { Form3 ^form3 = gcnew Form3(); form3->Show(); } else …

Member Avatar for TSims11
0
107
Member Avatar for ethanbuckley

Im stuck on a bit of code which I am re creating from a reference code given to me by my teacher. I have the following line that is giving me 6 errors: [CODE]this->Load += gcnew System::EventHandler(this, &EditWaveTrack_form1::EditWaveTrack_form1_Load);[/CODE] [ICODE]Error 1 error C2039: 'EditWaveTrack_form1_Load' : is not a member of 'WaveMachine::EditWaveTrack_form1' …

Member Avatar for jonsca
0
250
Member Avatar for goldman480

Hi all. can anyone help me correct errors in my code which is not running anymore and i dont really know why. If anyone can notice anything which shouldnt be in the code let me know please. I would really appreciate any sort of help. [QUOTE]Before writing your code you …

Member Avatar for jonsca
0
167
Member Avatar for gth759k

Hi, I need help with a simple problem. I'm still new to c++ but this should be fairly straightforward. I just need to generate a random number, but with only a very small range like ... 0.00001 to 0.001. Any help would be appreciated. Thanks.

Member Avatar for Zjarek
0
81
Member Avatar for dophine

Hi All, I just read the book called "C++ coding stardards - 101 rules". And Found there is something I don't understand. [CODE]class FlagNth { public: FlagNth( size_t n ) : current_(0), n_(n) {} // evaluate to true if and only if this is the n-th invocation template<typename T> bool …

Member Avatar for dophine
0
122

The End.