Go Back   Gaming Gutter


» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Selling UC pets!
Today 08:45 PM
Last post by kamikaze_turtle
Today 08:45 PM
0 Replies, 1 Views
Go to first new post The "New Xbox...
11-20-2008 03:27 PM
by Pandox
Last post by Googlrr
Today 08:43 PM
11 Replies, 50 Views
Go to first new post Favorite Disney movie?
10-31-2008 12:23 AM
Last post by Hodizzle
Today 08:43 PM
56 Replies, 381 Views
Go to first new post I met this girl today..
Yesterday 08:13 PM
Last post by Pandox
Today 08:41 PM
23 Replies, 93 Views
Go to first new post Who has ever botted on...
Today 06:31 PM
Last post by Pandox
Today 08:37 PM
2 Replies, 19 Views
Thread: Fuck C++ (Help)
View Single Post

 
Old 04-30-2008, 01:45 PM   #2 (permalink)
Fewmitz
Resident Psychopath.

Male Fewmitz is online now


 
Fewmitz's Avatar
 
Join Date: Nov 2006
Location: fewmitz@live.com
Posts: 5,471
GPoints: 3,284
iTrader: 1 / 100%
Fewmitz Is a Party CaptainFewmitz Is a Party CaptainFewmitz Is a Party Captain
Rep Power: 17
Yeah, I figured it out.

For those who are interested, the bottom of the header should have looked like this:

Code:
private: System::Void btnE_Click(System::Object^  sender, System::EventArgs^  e) {
             if(rbAdd->Checked){
                 result = result + Double::Parse(txtE->Text);
                 txtE->Text = result.ToString();
                 rbAdd->Checked = false;
             }
             if(rbSub->Checked){
                 result = result - Double::Parse(txtE->Text);
                 txtE->Text = result.ToString();
                 rbSub->Checked = false;
             }
             if(rbMult->Checked){
                 result = result * Double::Parse(txtE->Text);
                 txtE->Text = result.ToString();
                 rbMult->Checked = false;
             }
             if(rbDiv->Checked){
                 result = result / Double::Parse(txtE->Text);
            //    txtE->Text = result;
                 rbDiv->Checked = false;
             }
}
};
And then the .cpp should have looked like this:

Code:
// CalculatorC.cpp : main project file.

#include "stdafx.h"
#include "Form1.h"

using namespace CalculatorC;

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
    // Enabling Windows XP visual effects before any controls are created
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false); 

    // Create the main window and run it
    Application::Run(gcnew Form1());
    return 0;
}
};
Brackets.
__________________
The pirate who doesn't do anything.
 
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 08:45 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.06789589 seconds (100.00% PHP - 0% MySQL) with 18 queries