Skip to content

Project-CPP/Language-Easy_CPP-Addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows Syntax.

Windows Message Box

Class Object Creation

Syntax Example.... WindowsMessage YourMessageObject (" Your window name. " , " Your Window Message ");

Example .... WindowsMessage HeyJacob (" Greeting to Jacob " , " Hello there Jacob!" );

Class Object Methods

  1. ____________________OutputWindow ____________________

Syntax Example.... YourMessageObject.OutputWindow();

Example.... HeyJacob.OutputWindow();

Overall Code

WindowsMessage YourMessageObject(" Your window name. ", " Your Window Message ");

WindowsMessage HeyJacob(" Greeting to Jacob ", " Hello there Jacob!");

YourMessageObject.OutputWindow();

HeyJacob.OutputWindow();

Example Output

alt tag

alt tag

Windows Battery

Class Object Creation

Syntax Example .... WindowsBattery ObjectName (Is battery present true or false);

Example .... WindowsBattery Battery(true);

Class Object Methods

(1.) ____________________ Output_Battery_Percentage_As_String ____________________

Syntax Example.... YourBatteryObject.Output_Battery_Percentage_As_String();

Example.... Battery.Output_Battery_Percentage_As_String();

(2.) ____________________ Output_Battery_Percentage_As_Double ____________________

Syntax Example.... YourBatteryObject.Output_Battery_Percentage_As_Double();

Example.... Battery.Output_Battery_Percentage_As_Double();

(3.) ____________________ Output_Battery_Percentage_As_Integer ____________________

Syntax Example.... YourBatteryObject.Output_Battery_Percentage_As_Integer();

Example.... Battery.Output_Battery_Percentage_As_Integer();

Overall Code

WindowsBattery Battery(true);

 cout << "Battery Percent as a String %" << Battery.Output_Battery_Percentage_As_String() << endl;
 cout << "Battery Percent as a Double %" << Battery.Output_Battery_Percentage_As_Double() << endl;
 cout << "Battery Percent as a Integer %" << Battery.Output_Battery_Percentage_As_Integer() << endl;

cin.get();

Example Output

alt tag

About

Let's make C++ programming more simple.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages