Jump to content

Any C++ Wiz kids here


Recommended Posts

oh yeah, SQL is cake. pl/sql wasn't too bad but I don't have to mess with it at work so thats ok too.

SQL syntax is ridiculously simple, getting it to do the right thing can be tricky sometimes though.

 

F150:

Stock :(

 

2019 Harley Road Glide:

Amp: TM400Xad - 4 channel 400 watt

Processor: DSR1

Fairing (Front) 6.5s -MMats PA601cx

Lid (Rear) 6x9s -  TMS69

 

Link to comment
Share on other sites

I'm looking at classes and how to use them in c++ and I think its some kind of fucking voodoo magic. How do you go from declaring a class called "this thing (ghh, yyy, GGG as whatever)

And then go to calling it as this.magicshit

Link to comment
Share on other sites

And now you all see my pain.this fucking blows, I gave up for the night. I'll take another whack at it in the morning

THERE IS NO BUILD LOG!

1998 Chevy Silverado ext cab

Alpine CDA-9887

4 Team Fi 15s

2 Ampere Audio TFE 8.0

2 Ampere Audio 150.4

3 Digital Designs CS6.5 component sets

Dual Mechman 370XP Elite alternators inbound!

8 XS Power d3400

6 XS power d680

Second Skin

Stinger

Tsunami Wiring

Sky High

A Real Voltmeter not a piece of shit stinger.

Link to comment
Share on other sites

And now you all see my pain.this fucking blows, I gave up for the night. I'll take another whack at it in the morning

I can ask my brother to make you the class + program if its that hard... itll take him not long . His language is C++

MOB-MOBILE: 2005 Honda Accord 5-Speed System: (1) Sundown Audio SA-15 (1) MB Quart ONX1.1500D (1) Kenwood KDC-248U

Speakers:

-Rear Dash: (2) Clarion SRQ6932R 6x9's SOLD

New MOB-MOBILE:

2011 G37S Sedan

System:
TBD

Instagram (18+) : DabsWitaBudget415

Link to comment
Share on other sites

The only issue with that is I still have two more to do after this. Lol unless of course he's up for making some money

THERE IS NO BUILD LOG!

1998 Chevy Silverado ext cab

Alpine CDA-9887

4 Team Fi 15s

2 Ampere Audio TFE 8.0

2 Ampere Audio 150.4

3 Digital Designs CS6.5 component sets

Dual Mechman 370XP Elite alternators inbound!

8 XS Power d3400

6 XS power d680

Second Skin

Stinger

Tsunami Wiring

Sky High

A Real Voltmeter not a piece of shit stinger.

Link to comment
Share on other sites

So Ive got the whole thing done and it throws an error on the very last line. Anyone have an idea here. the error is undefined reference to winmain@16 and it was built as a console program so not sure whats going on i justt need some additional eyes here. I think its the way I went from square to circle but I'm not sure

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

#include "Square.h"
#include "Circle.h"

int main()
{
Square Square;

Square.SetSide(10);
cout << "\n\n\t The length of the side of the Square is"
<<Square.GetSide()
<< "\n\n\n\t The area of the Square is"
<<Square.Area();

Circle Circle;

Circle.SetRadius(10);
cout << "The Radius of the circle is"
<< Circle.GetRadius()
<< "The area of the circle is"
<< Circle.Area();
cout << "\n\n\n\t";
return 0;
}
};

square header

#ifndef SQUARE_H_INCLUDED
#define SQUARE_H_INCLUDED



#endif // SQUARE_H_INCLUDED

class Square
{
public:
Square(){} //default constructor
Square(double A) //full constructor
{
Side = A;
}

//setter function
void SetSide (double A)
{
Side = A;
}

//Getter Function
double GetSide()
{
return Side;
}
//Facilitators
double Area()
{
return Side * Side;
}


private:
double Side;


};

circle header

#ifndef CIRCLE_H_INCLUDED
#define CIRCLE_H_INCLUDED



#endif // CIRCLE_H_INCLUDED

class Circle
{
public:
Circle(){} //default constructor
Circle(double A) //full constructor
{
Radius = A;
}

//setter function
void SetRadius (double A)
{
Radius = A;
}


//Getter Function
double GetRadius()
{
return Radius;
}

//Facilitators
double Area()
{
return Radius * 3.14159 * Radius;
}


private:
double Radius;

};

any ideas

THERE IS NO BUILD LOG!

1998 Chevy Silverado ext cab

Alpine CDA-9887

4 Team Fi 15s

2 Ampere Audio TFE 8.0

2 Ampere Audio 150.4

3 Digital Designs CS6.5 component sets

Dual Mechman 370XP Elite alternators inbound!

8 XS Power d3400

6 XS power d680

Second Skin

Stinger

Tsunami Wiring

Sky High

A Real Voltmeter not a piece of shit stinger.

Link to comment
Share on other sites

Not that I am much help since I don't know C++ but nothing looks off comparing it to what I know about programming in general. I know that doesn't help you any but I thought I would let you know anyway...

 

F150:

Stock :(

 

2019 Harley Road Glide:

Amp: TM400Xad - 4 channel 400 watt

Processor: DSR1

Fairing (Front) 6.5s -MMats PA601cx

Lid (Rear) 6x9s -  TMS69

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Who's Online   1 Member, 0 Anonymous, 1291 Guests (See full list)

×
×
  • Create New...