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]

ate pa help nmn....paki tingin kung may mali sa codings ko ayaw kc gumana ng loop eh....


#include <stdio.h>
main()
{
int a,b,c,d,e;
float g;
char h;

do
{
clrscr();
printf ("Recitation: ");
scanf ("%d",&a);
printf ("quiz:");
scanf ("%d",&b);
printf ("Project: ");
scanf ("%d",&c);
printf ("Written Exam: ");
scanf ("%d",&d);
printf ("major Exam: ");
scanf ("%d",&e);

g=(a*.10)+(b*.10)+(c*.20)+(d*.30)+(e*.30);

printf ("The average is: %2.2f",g);

printf ("\n\nDo you want to try again?[y/n]: ");
scanf("%c",&h);
}
while("h!='n');
getch();
}

yan ung coding ko ayaw gumana ng loop...

ginawa kong bold yung error. tingin ko wala dapat yung "
 
boss e2 yung ginawa ko kaso mali eh nag eexit lang xa hindi nalabas ung cout:
int main()
{
char x;
do{
clrscr();
cout<<"press x to print ****";
x=getche();
if (x=='x'||x=='X')
{
cout<<"blah blah blah";
}
}while(x!'x');
return 0;
}
ano po sa tingin mo san ung mali ko jan oh ano ba dapat function pede ko gamitin tsaka ung pag delete din ng input pano din kaya?
 
Last edited:
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
char a,x;
cout<<"Enter letter a to view a details:";
cin>>a;
if (a=='a'||a=='A')
{
cout<<"BLAH BLAH BLAH"<<endl<<endl;
cout<<"Enter letter x to delete:";
if (x=='x'||x=='X')
{
clrscr();
}
}
else
{
cout<<"Wrong entry System terminated";
getch();
}


add mo q sa FB [email protected]
 
ginawa kong bold yung error. tingin ko wala dapat yung "

pede bigay mo nalang yung problem mismo ... at di aq C eh .... C++ mas madali magets e ...

try ko din sagutin .. tapos n kami jan eh .. JAVA n kami ngayon ...
 
pede bigay mo nalang yung problem mismo ... at di aq C eh .... C++ mas madali magets e ...

try ko din sagutin .. tapos n kami jan eh .. JAVA n kami ngayon ...

hindi ako yung may problem, nagbibigay ako ng solution.

pangalawa, check mo yung kabilang thread, may comment ako about sa code mo.
 
ou nga bat nga ba ikaw ang quote ko ... haha mali pala ... sorry po kita ko na ... add nyo po ako sa FB pls [email protected]

para may matanungan ako ... pls tnx
 
i-compile mo para malaman mo yung error mo. kapag may error, tignan mo yung error message at subukan intindihin.
 
boss paki correct naman tong program ko dko kc alam kng pano ko dedelete ung text tapos mapapalitan ng iba.....
e2 ung code
#include <iostream.h>
#include <conio.h>
#include <stdlib.h>

int box (int c1,int c2,int r1,int r2);

void main()
{
char wex;
while( wex !='x')
{
box(2,78,2,6);
box(2,37,7,18);
box(39,78,7,18);
box(2,78,19,24);
cin>> wex;
if( wex=='a')
{
clrscr();
gotoxy(53,10); cout<<"Add Data";
gotoxy(53,11); cout<<"press x to exit";
}
else if( wex=='e')
{
clrscr();
gotoxy (53,10); cout<<"Edit Date";
gotoxy (53,11); cout<<"press x to exit";
}
else if( wex=='d')
{
clrscr();
}

}
}
box(int r1,int r2, int c1,int c2)
{
int x,y;

for(x=r1;x<=r2; x++)
{
gotoxy (x,c1); cout<<"*";
gotoxy (x,c2); cout<<"*";
}

for (y=c1; y<=c2; y++)
{
gotoxy (r1,y); cout<<"*";
gotoxy (r2,y); cout<<"*";
gotoxy (15,3); cout<<"Nueva Ecija University of Science and Technology";
gotoxy (30,4); cout<<"Cabanatuan City";
gotoxy (30,5); cout<<"Payroll Program";
gotoxy (4,9); cout<<"[A] Add Data";
gotoxy (4,11); cout<<"[E] Edit Data";
gotoxy (4,13); cout<<"[D] Delete Data";
gotoxy (4,15); cout<<"[X] Exit";
gotoxy (4,17); cout<<"Please Display cursor Here [ ]";
gotoxy (48,9); cout<<"Adrian Philip U. Rios";
gotoxy (53,12); cout<<" V 1.0 ";
gotoxy (50,14); cout<<"Dec. 12, 2010";
gotoxy (32,17);
}
return 0;
}
e2 kc ung sa box sa right side dapat mapalitan xa pag press ko ung a and e ai lalabas ung "Add data" at "press x to exit" dun sa box at mabubura na ung "adrian philip rios, "v 1.0" at ung date" wat command po ba pede gamitin ko??

ang problem ko kc eh pumapatong lang xa hindi nabubura ung dating laman ng box???
 
mga bossing khit ung function na lng try ko na lng i search sa google kng wala talaga....

nedd ko lng talaga to
:pray:
 
wala kang kailangan na function, mali lang yung algorithm mo.
 
aw ganun ba? eh pao ba dapat? boss baka naman pede mo ulit ako 2lungan?
 
search mo na lang about clreol()

para syang clrscr(), pero one line lang ang buburahin nya.
 
search lang poh dito.. meron poh.
 
Hi po pahelp aman po sa turbo C++ gumagawa kami program ng mean median mode... meron na kami ng ungroup but the problem is wala pa kaming group at need na namin un marami na kami napag tanungan project namin sya sa math so hndi sya naituro samin.,,, p\leaase help us thanks
 
bossing may sample code ka ba ng payroll system...di ko magets e may kasama daw array
 
mga pafs tanung naman.panu ko ito malilimit sa pag input ng user na number lang?error ma kasi pag character na ininput nya.TIA

cout<<"How many numbers are there in the array? ";
cin>>arraylenght;
 
mga pafs tanung naman.panu ko ito malilimit sa pag input ng user na number lang?error ma kasi pag character na ininput nya.TIA

cout<<"How many numbers are there in the array? ";
cin>>arraylenght;

gamit ka po ng strings.
 
ang sakit sa ulo ng c++ .. ano ba magandang gawin pag baguhan pa lang..
 
Back
Top Bottom