Vikas
Vikas
Vikas
Femi Shaju
Read it
MoreToEarn
/opencv
Dima
Anonymous
/opencv
Anonymous
/opencv
Amir
*Jawapan Latihan 5 Functions* #include "stdafx.h" #include <iostream> #include <string> #include <cctype> using namespace std; int main() { const double pi = 3.142; char answer = 'Y'; int choice; cout << "Menu" << endl; cout << "1. CALCULATE AREA OF TRIANGLE" << endl; cout << "2. CALCULATE AREA OF CIRCLE" << endl; cout << "3. CALCULATE AREA OF CYLINDER" << endl; cout << "4. CHANGE LOWERCASE TO UPPERCASE" << endl; cout << "5. CHANGE UPPERCASE TO LOWERCASE" << endl; cout << "6. TRACE EITHER CHARACTER ARE NUMERIC OR NOT" << endl; cout << "7. TRACE EITHER CHARACTER ARE ALPHANUMERIC OR NOT" << endl; cout << "8. EXIT" << endl; do { cout << "Enter your choice" << endl; cin >> choice; if (choice == 1) { double x = 0, y = 0, areaoftriangle = 0; cout << "Enter value of x (base) : "; cin >> x; cout << "Enter value of y (height) : "; cin >> y; areaoftriangle = (x*y)/2; cout << "Area of triangle : " << areaoftriangle << endl; } else if (choice == 2) { double radius = 0, areaofcircle = 0; cout << "Enter r (radius) : "; cin >> radius; areaofcircle = pi * radius*radius; cout << "Area of circle = " << areaofcircle << endl; } else if (choice == 3) { double r = 0, h = 0, areaofcylinder = 0; cout << "Enter r (radius) = "; cin >> r; cout << "Enter h (height) = "; cin >> h; areaofcylinder = (2 * pi*r*h) + (2 * pi*r*r); cout << "Area of cylinder = " << areaofcylinder << endl; } else if (choice == 4) { char d; cout << "Enter character in lowercase: "; cin >> d; d = toupper(d); cout << d << endl; } else if (choice == 5) { char d; cout << "Enter character in uppercase: "; cin >> d; d = tolower(d); cout << d << endl; } else if (choice == 6) { char x; cout << "Enter character = " << endl; cin >> x; if (isdigit(x)) { cout << "Is a digit!" << endl; } else { cout << "Is not a digit!" << endl; } } else if (choice == 7) { char x; cout << "Enter character = " << endl; cin >> x; if (isalnum(x)) { cout << "It's alpha-numeric" << endl; } else { cout << "It's not alpha-numeric" << endl; } } else if (choice == 8) { return 0; } else { cout << "That's the wrong number!" << endl; } cout << "Do you want to proceed? Y for yes, N for no" << endl; cin >> answer; }while(answer == 'Y'); cout << "Thank you." << endl; system("pause"); }
Dima
/ban @LeoEvans931 fortnite
Dima
a new wave of stupid bots
klimi
i didnt press enter
klimi
NOOO
klimi
warn for ot/promo yt
Dima
Thoros
Dima
Thor + Thanos
Dima
Thoros Man
klimi
Anonymous
What would be the MASM syntax for INC [RBX]
Anonymous
Hello programmers, other than hackerrank where can i practice c++ ? I recently learnt classes, namespace, exceptions, and function and class templates, So I wanna solidify what i learnt
Mihail
Hello programmers, other than hackerrank where can i practice c++ ? I recently learnt classes, namespace, exceptions, and function and class templates, So I wanna solidify what i learnt
You can practice it on other similar sites, like leetcode or you can just make something of your choice as experience will teach you
Mihail
also you can find projects to contribute to once you feel confident on sites like GitHub and GitLab
Anonymous
Okay thanks!
Anonymous
What kinda project do you think i can do with what i know
Anonymous
?
vamsi
vamsi
Can any one help
vamsi
To this pattern lagic
Dima
Lmao these assignments
Dima
read the rules, no photo of a screen
klimi
i like how you re written it in notepad
joel
so every time a redmi takes a pic is has to show a watermark?
klimi
its feature you can enable
Dima
so every time a redmi takes a pic is has to show a watermark?
and in the other side it should show “tik-tok” lol!
shoker
can someone help where am i getting it wrong
BinaryByter
you declared the functions
BinaryByter
but you never define them
olli
can someone help where am i getting it wrong
you don't provide a defintion for your functions. Hence "undefined reference"
BinaryByter
this error isnt a compilation error
BinaryByter
but a linker error
professor
how can I compile dynamically and static because I need this library `#pragma comment(lib,"ws2_32") `
shoker
ok how do i define them
Mat
can someone help where am i getting it wrong
I hope you don't think the compiler will create the function for you🤔
Mat
ok how do i define them
The same way you defined the main function
shoker
ok thanx
Anonymous
anyone who can help me develop a banking system using c++?
Anonymous
okay i understand
Mat
okay i understand
That means: Try to do your homework/request and tell us if and when you encounter some problems. We're here to help, too. But we're not here to substitute your studying
Liquidator😁😂🍧
😁😁😁😁
Liquidator😁😂🍧
😁😁😁
Liquidator😁😂🍧
Getout dog
Anonymous
I need a rubber ducky
Anonymous
Someone can help me?
Anonymous
Anybody
Anonymous
Hello, I am new in this group , can anyone say how I can start C language learning from basic?
Anonymous
Is the best way
Anonymous
Does the C has any especial IDE?
Anonymous
Thanks, Rose
Anonymous
Hi
klimi
Hi
Anonymous
Hiii
Anonymous
❤️
Anonymous
Hi
بوصَعبْ
Hello everyone. Does any one know a book about C++ practices? , for beginner.
بوصَعبْ
Thanks
Liquidator😁😂🍧
Gerat
Humayun
should i start with c or c++??
Humayun
okay
klimi
Listen everyone @BinaryByter IS DOING TURBOCPP!!!!