Android Jc
Forum Veteran
- Joined
- Sep 4, 2017
- Posts
- 1,041
- Reaction
- 2,145
- Points
- 543
- Age
- 24
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
alam kong easy po sa inyo yan sorry first time kong mag c++very easy but im at work cant code it
please dont spoonfeed .. let them code ..very easy but im at work cant code it
d nga po nag tuturo mga prof ehsuper basic lng nman niyan eh .. aral muna ts
use google.. wag ka nang umasa sa prof mo hahahad nga po nag tuturo mga prof eh
#include<iostream>
#include<cstring>
using namespace std;
int main (){
string name;
string con;
char gend,ans;
int age;
do {
{
cout<<"Enter your Full name: ";
getline(cin, name);
cout<<"Enter your Age ( 7 - 55 only): ";
cin>>age;
if(age < 7 || age > 55){
cout<<"\aPlease enter age Legibly";
return 0;
}
else
cout<<"Enter your Gender( M / F ): ";
cin>>gend;
if(gend == 'm' || gend == 'M')
con = "Male";
else if(gend == 'F' || gend == 'f')
con = "Female";
else
{
cout<<"\aPlease specify your gender corecctly";
return 0;
}
cout<<"Your Name is "<<name<<", "<<age<<" Years old"<<" and you are "<<con<<endl;
cout<<"Was this Information Correct? ( Y/N ): ";
cin>>ans;
cin.ignore(1, '\n');
}
}
while(ans == 'n' || ans == 'N');
cout<<"Made by ME :) Thanks! \n";
system("pause");
return 0;
}
wag sana spoonfeed .. di natutoto pag ganyan eh ..Sakto new topic namin to kaya ginawa ko narin hahaha
Sorry kung may mali newbiee po hehe
Code:#include<iostream> #include<cstring> using namespace std; int main (){ string name; string con; char gend,ans; int age; do { { cout<<"Enter your Full name: "; getline(cin, name); cout<<"Enter your Age ( 7 - 55 only): "; cin>>age; if(age < 7 || age > 55){ cout<<"\aPlease enter age Legibly"; return 0; } else cout<<"Enter your Gender( M / F ): "; cin>>gend; if(gend == 'm' || gend == 'M') con = "Male"; else if(gend == 'F' || gend == 'f') con = "Female"; else { cout<<"\aPlease specify your gender corecctly"; return 0; } cout<<"Your Name is "<<name<<", "<<age<<" Years old"<<" and you are "<<con<<endl; cout<<"Was this Information Correct? ( Y/N ): "; cin>>ans; cin.ignore(1, '\n'); } } while(ans == 'n' || ans == 'N'); cout<<"Made by ME :) Thanks! \n"; system("pause"); return 0; }
yes haha tama ka boss,wag sana spoonfeed .. di natutoto pag ganyan eh ..
pano naman matututo eh d naman tinuro samin yan advance kasi mag isip prof ko sorry kung sa tingin mo spoonfeed ako ahh need ko kasi code para mapag aralan ko dinwag sana spoonfeed .. di natutoto pag ganyan eh ..
maraming salamat bossSakto new topic namin to kaya ginawa ko narin hahaha
Sorry kung may mali newbiee po hehe
Code:#include<iostream> #include<cstring> using namespace std; int main (){ string name; string con; char gend,ans; int age; do { { cout<<"Enter your Full name: "; getline(cin, name); cout<<"Enter your Age ( 7 - 55 only): "; cin>>age; if(age < 7 || age > 55){ cout<<"\aPlease enter age Legibly"; return 0; } else cout<<"Enter your Gender( M / F ): "; cin>>gend; if(gend == 'm' || gend == 'M') con = "Male"; else if(gend == 'F' || gend == 'f') con = "Female"; else { cout<<"\aPlease specify your gender corecctly"; return 0; } cout<<"Your Name is "<<name<<", "<<age<<" Years old"<<" and you are "<<con<<endl; cout<<"Was this Information Correct? ( Y/N ): "; cin>>ans; cin.ignore(1, '\n'); } } while(ans == 'n' || ans == 'N'); cout<<"Made by ME :) Thanks! \n"; system("pause"); return 0; }
impossible nman kung di man lng kayo naturuan ng basics .. or kahit mag google ka lng may mga clue ka na eh .. just saying .. anyways .. ikaw rin nman mahihirapan sa future lessons niyo .. goodLuck ..pano naman matututo eh d naman tinuro samin yan advance kasi mag isip prof ko sorry kung sa tingin mo spoonfeed ako ahh need ko kasi code para mapag aralan ko din
first time ko pa nga lang po mag c++ nag try na ko di ko kinaya kaya nga po himihingi ng help eh para once na tama ung code pag aaralan ko kung pano cinode unsigurado ka?
Try mo muna mgcode tsaka ka mag tanong
ikaw kaya pumasok dito ewan ko lng kung hindi ka mapamura sa mga prof dtoimpossible nman kung di man lng kayo naturuan ng basics .. or kahit mag google ka lng may mga clue ka na eh .. just saying .. anyways .. ikaw rin nman mahihirapan sa future lessons niyo .. goodLuck ..
galing nako sa ganyan sitwasyon .. feeling mo ikaw lng eh hahahaikaw kaya pumasok dito ewan ko lng kung hindi ka mapamura sa mga prof dto
Ang alam ko ts, kung beginner kapa lang sa c++ at pumapasok ka naman, dapat basics palang ang ituturo sa inyo tulad ng number sequence at conditional operator, yang question mo kasi may Cstring at Loop, na dapat medyo malayo pa.