- Messages
- 14
- Reaction score
- 0
- Points
- 16
help po sa LAN ENROLLMENT SYSTEM WITH VIEWING OF GRADES
vb6, adodc and ms access
big thanks...
UP..
vb6, adodc and ms access
big thanks...
UP..
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!
[FONT="Courier New"]#include <conio.h>
#include <stdio.h>
int main()
{
int val=10;
int num=0, lst[val], odd[val], lstctr=0, oddctr=0,sum=0;
for(int x=0; x<val; x++)
{
scanf("%d",&num);
if(num%2==1)
{
odd[oddctr] = num;
sum+=odd[oddctr];
oddctr++;
}
if(x<val)
{
lst[lstctr] = num;
lstctr++;
}
}
printf("\n\nList\tODD");
for( int i = 0; i < val; i++ )
{
if(i < lstctr)
{
printf("%i", lst[i]);
}
else
{
printf("");
}
if(i < oddctr)
{
printf("\n%i\t", odd[i]);
}
else
{
printf("\n \t");
}
}
printf("Sum of Odd # is : %d",sum);
getch();
}[/FONT]
sir.. pahelp po about sa c++.
Codes/Program about PRIME AND PRIME FACTORIZATION.
kelangan ko ng program na if PRIME NUMBER ang gi-input ko,
mag-ooutput sya ng "PRIME",
and if COMPOSITE NUMBER naman ang gi-input ko,
e-ooutput nya ung PRIME FACTORS...
output example:
enter a number: 3
<< prime
enter a number: 8
<< 2 2 2 or (2x2x2) or (2.2.2)
Thanks...
guys tanung lang po sa mga vb6 programmers dyan. anu pong best na alternative sa system time? need kasi ng system ko na accurate ang time eh. hmn. ung kahit palitan ang system time is accurate parin yung time nya. any ideas? in advance.
guys tanung lang po sa mga vb6 programmers dyan. anu pong best na alternative sa system time? need kasi ng system ko na accurate ang time eh. hmn. ung kahit palitan ang system time is accurate parin yung time nya. any ideas? in advance.
www.rel.phatcode.net/junk.php?id=132
http://rel.phatcode.net/Temp/primefactorsscreen.png
Java yan but it coul be easily converted to c++.
@crismatel: What's the prob? Mukhang okay naman output mo.
output:add and subtract numbers in one program
ung add,subtract and multiply mga master ntsambahan ko,pero hiwahiwalay sila ng program..
ngyon kasi magkasama n,wala kong idea kung panu..
nakalimutan ku pa ung gagawin pag open ko ng command prompt kung anu ittype para lumabas ung kulay blue na screen kung san umagawa ng program..
#include <iostream>
#include <cstring>
using namespace std;
int score1=0,score2=0;
void scoreboard();
void winner();
void name();
void game();
string p1name;
string p2name;
char playagain;
int guess,p1,p2,ans;
void supermain();
void again();
int main()
{
do {
supermain();
again();
}while(playagain=='y'||playagain=='Y');
system("pause");
return 0;
}
void again(){
loop:
cout<<"Do you want to play again? (y/n) : ";
cin>>playagain;
system("cls");
if (playagain=='y'||playagain=='Y'){
system("cls");
}
else if (playagain=='n'||playagain=='N')
cout<<" Thank you for Playing C++ Guessing Game!!\n\n Coded by Xnauwfall\n\n\n";
else
{cout<<"\n\n\nType y or n only!\n\n\n\n";
system("pause");
system("cls");
goto loop;}
}
void supermain(){
score1=0,score2=0;
cout<<" Welcome to this simple C++ Guessing Game!!\n\n Coded by Xnauwfall\n\n\n";
cout<<"Instruction: \nEach of the player will give a secret number\nand the other player must be able to guess the secret number.\n\nPlayer who first get 3 points wins!\n\n\n\n\n\n\n";
system("PAUSE");
system("cls");
name();
game();
winner();
}
void name(){
cout<<"\n\n\nPlayer 1, please enter your name: ";
getline(cin,p1name);
system("cls");
cout<<"\n\n\nPlayer 2, please enter your name: ";
getline(cin,p2name);
system("cls");
}
void winner(){
scoreboard();
if(score1==3)
cout<<p1name<<" won this match!\nCongratulations!\n\n";
else
cout<<p2name<<" won this match!\nCongratulations!\n\n";
}
void scoreboard(){
cout<<"-=SCOREBOARD=-\n "<<p1name<<": "<<score1<<"\n "<<p2name<< ": "<<score2<<"\n\n\n";
}
void game(){
while(score1<3&&score2<3) {
scoreboard();
cout<<p1name<<", enter the secret number: ";
cin>>ans;
system("cls");
scoreboard();
cout<<p2name<<", guess the number: ";
cin>>guess;
system("cls");
if(ans==guess){
cout<<"You got the correct answer!\n\n\n";
score2++;
}
else{
cout<<"You answered "<<guess<<" which is wrong!\n\n\n";
}
if (score2==3){
break;
}
else{
scoreboard();
cout<<p2name<<", enter the secret number: ";
cin>>ans;
system("cls");
scoreboard();
cout<<p1name<<", guess the number: ";
cin>>guess;
system("cls");
if(ans==guess){
cout<<"You got the correct answer!\n\n\n";
score1++;
}
else{
cout<<"You answered "<<guess<<" which is wrong!\n\n\n";
}
}
}
}