🔒 Closed Calling all c++ user help me

Status
Not open for further replies.

Android Jc

Eternal Poster
IMG20180927185644.jpg patulong naman mga master pinag seatwork kami eh hindi pa nama tinuturo samin tong mga to
 
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;
}
 
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;
}
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;
}
maraming salamat boss
 
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
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 ..
 
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 ..
ikaw 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.
 
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.

FB_IMG_7214753273895956689.jpg
salamat sa code mo boss dahil sa code mo nag ka idea ako e-code ung seatwork ko ..
 
Status
Not open for further replies.

About this Thread

  • 29
    Replies
  • 2K
    Views
  • 9
    Participants
Last reply from:
Android Jc

Online now

Members online
317
Guests online
976
Total visitors
1,293

Forum statistics

Threads
2,275,524
Posts
28,963,845
Members
1,232,833
Latest member
mohdsad
Back
Top