- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
chconline Veteran
I'm trying to implement the following code but I keep getting compiler errors. I'm using Dev-C++ default settings. Is it a compiler settings problem or code problem? Anyone have any ideas? Thanks :)
(Sorry I'm really noob at programming lol, any help is greatly appreciated.)
// File name: Point.cpp #include "point.h" // Default constructor Point::Point() :x(),y(),label() { x = 0; y = 0; label = "BLANK"; } Point::Point(double input_x, double input_y, string input_label) // constructor that sets the values for variables to be set up for input :x(input_x), y(input_y), label(input_label) { x = input_x; y = input_y; label = input_label; } double Point::set_x(double user_x) // set the value of x { x = user_x; return x; } double Point::set_y(double user_y) // set the value of y { y = user_y; return y; } string Point::set_label(string user_label) // set the value for label { label = user_label; return label; } double Point::get_x()const // get the X value { return x; } double Point::get_y()const // get the Y value { return y; } string Point::get_label()const // get the label value { return label; } void Point::print()const // let's print the final result { cout << "\n" << label << "(" << fixed << setprecision(1) << x << "," << fixed << setprecision(1) << y << ")" << endl; }
Errors:
Link to comment
https://www.neowin.net/forum/topic/753786-c-classes-implementation-problem/Share on other sites
5 answers to this question
Recommended Posts