Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[GTCD] c++ PROBLEMS ONLY ft. [BISDAK]

natad123

The Fanatic
Advanced Member
Messages
480
Reaction score
0
Points
26
paki post yung problems nyo in c++ only ah?​
as much as possible try to post your problematic code..​
 
Last edited:
ate ella, pano po gumamit ng if..?
 
ate ella, pano po gumamit ng if..?

if is for conditions...
sample:


cin>>a;
if(a==1)
cout<<"one":
else
cout<<"not one";
}


yun poh gamit ng if.
 
possible ba gumawa ng calculator using c++?

kahit naka command prompt lang na calcu..
tapos hindi nag-end agad ang program para ready lang sa next computation until i-close ng user.
 
ate ella, pano po gumamit ng if..?


ang if ay ginagamit para mag-test ng condition. dahil sa is statement, nagagawa nating macontrol ung daloy ng program natin, for example, may mga codes tayong pwde i-skip, etc..

ang syntax nya ay

Code:
if (expression)
{
     statements if true
}
else
{
     statements if false
}


ung expression is ung condition na gus2 nating icheck

possible ba gumawa ng calculator using c++?

kahit naka command prompt lang na calcu..
tapos hindi nag-end agad ang program para ready lang sa next computation until i-close ng user.

pwede, gamit ka lang ng infinite loop. then kung gus2 mo mag exit, gamit k n lng ng break function
 
ate ella, pano po gumamit ng if..?

nag tatanong ka pa e gusto mo lng kausap si ate natad.

btw ung if ,else, else if statements ay pra sa option ng system kung ano dpat gwin.which is the "if" is ung klngan gwin pra gwin ng system ung nasa loob ng if statement.at kung hnd nasunod ung if na un,hahanap ung system ng bagong statement na sasatisfy sa pinapagwa mo.at kung walang mapuntahan ung system,doon na papasok si else.it means kung hnd masatisfy ung system sa mga if statements,ang gagawin nya ung else statement.

gets? hahahahha
 
ang if ay ginagamit para mag-test ng condition. dahil sa is statement, nagagawa nating macontrol ung daloy ng program natin, for example, may mga codes tayong pwde i-skip, etc..

ang syntax nya ay

Code:
if (expression)
{
     statements if true
}
else
{
     statements if false
}


ung expression is ung condition na gus2 nating icheck



pwede, gamit ka lang ng infinite loop. then kung gus2 mo mag exit, gamit k n lng ng break function

infinite loop and break function. :yipee:
alamin ko muna meaning nila. :thumbsup:
baguhan pa lang ako sa programming eh. :rofl:

thank you sir sa info!! :thumbsup:

aralin ko na muna pano gamitin yung dalawa. ^^
 
otor, penge naman po ng c++ game code, ang kelangan po gamitin eh if statement, while, at for lng po, penge po ng game code khit anong game nlang po.
tnx
 
otor, penge naman po ng c++ game code, ang kelangan po gamitin eh if statement, while, at for lng po, penge po ng game code khit anong game nlang po.
tnx

search k lang sir s google, maraming sample codes n nagkalat s web.
 
otor, penge naman po ng c++ game code, ang kelangan po gamitin eh if statement, while, at for lng po, penge po ng game code khit anong game nlang po.
tnx

game log in at password pde na bah kuya?
 
Ts.. paki explain lang po kung pano gamitin ang do at while... at yung y++ at kung bakit x>y
#include <iostream>
#include <conio>

int main ()
{
...int x,y;
char z[100],k[100];

cout<<"How many candidates\n";
cin>>x;

do
{
cout<<"\nName:";
cin>>k;
cout<<"\nDepartment";
cin>>z;
y++;
cout<<"Name:"<<k<<"\tDepartment:"<<z;
}while (x>y);

getch ();
return 0;
}
 
while x is greater than z do:
cout<<"\nName:";
cin>>k;
cout<<"\nDepartment";
cin>>z;

increase y by 1.
 
Ts.. paki explain lang po kung pano gamitin ang do at while... at yung y++ at kung bakit x>y
#include <iostream>
#include <conio>

int main ()
{
...int x,y;
char z[100],k[100];

cout<<"How many candidates\n";
cin>>x;

do
{
cout<<"\nName:";
cin>>k;
cout<<"\nDepartment";
cin>>z;
y++;
cout<<"Name:"<<k<<"\tDepartment:"<<z;
}while (x>y);

getch ();
return 0;
}



" x " stand for how many candidates do you want to input

y++, other wise increment... We need to increment the y++

So he can reach or equal the value of (x) to make the condition false " x>y " so the loop could stop...

otherwise if we dont increment y... The loop will execute infinite because the condition always true...

Just press Ctrl+C... Soo could stop the execution ahhahhaha pahabol:lol::lol::lol::lol::lol::lol::lol:
 
Last edited:
Back
Top Bottom