Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Main › Suggestions, Requests & General Help › Homework & Learning Section › need programming help! (C++)

need programming help! (C++)

Posts 1–5 of 5 · Page 1 of 1
Orteez
Orteez
need programming help! (C++)
I'm doing a geometric calculations thing using microsoft visual basic and I don't know how to set up the stuff so it calculates the volume and area. I just have to make up a problem. If you know this stuff type the code that I need to write in the cout section. Do the volume of a cylinder and area of a circle if you can set up an example for me. Volume of a cylinder is pi*radius squared*height, area of a circle is pi*radius squared. Note it has to solve the problems for you, you can't put the answer down.

If you need more clarification on what I'm doing go to my programming teacher's website at MsPetr.org and click on programming 1 C++, then click on geometric calculator (calc) and Math Operations.
#1 · 15y ago
Auxilium
Auxilium
[php]#include <math.h>[/php]
has lots of math functions.
#2 · 15y ago
bayley60
bayley60
dude i dont no anything about c++ but you will get alot more help if u move your thread to the c++ section here:C++/C - MPGH - MultiPlayer Game Hacking
#3 · 15y ago
Illuminatus
Illuminatus
C++ Language Tutorial
#4 · 15y ago
tylermp1
tylermp1
Assuming the homework isn't due yet ;-)

Here's most of the shapes listed in the syllabus, I'll let you figure out the rest yourself.

Code:

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
	return 0;
}


#include <iostream>

using namespace std;

int main()
{
	float length;
	float width;
	float height;
	float pi;
	float volume;
	float area;

	pi = 3.1416;

	cout << "The length of the shape  is: ";
	cin >> length;

	cout << "The width of the shape  is: ";
	cin >> width;

	cout << "The height of the shape  is: ";
	cin >> height;

	if (height == 0 && length > 0 && width > 0) 
	{
		cout << "The area of the rectangle is: ";
		cout << length * width;
	}

	else if (height > 0 && length > 0 && width > 0){
		cout << "The volume of the rectangular prism is: ";
		cout << length * width * height;
	}
	else if (width > 0 && height == 0 && length == 0){
		cout << "The area of the circle is: ";
		cout << (width / 2) * (width / 2) * pi;
	}
	else if (width > 0 && height > 0 && length == 0){
		cout << "The volume of the cylinder is: ";
		cout << (width / 2) * (width / 2) * pi * height;
	}


	system("pause");
}
Did that with two days knowledge of C++...maybe you should pay attention in class? Haha
#5 · 15y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • I want to learn how to program! Help Needed pleaseBy ballin299 in Minecraft Help
    15Last post 14y ago
  • need some help to upgrade a programBy ravencraft in Member Introduction & Return
    19Last post 15y ago
  • I NEED A PROGRAM! HELPBy KingDot in General
    11Last post 15y ago
  • please i need ur help norton deleted (crossfire.exe) and the game stopedBy nooraleman in CrossFire Help
    22Last post 15y ago
  • I need some help with binding eps7By v1zhaixingv1 in Vindictus Help
    3Last post 15y ago

Tags for this Thread

None