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!

-= Having Difficulties in C++ and Java? Be a Part of This Thread =-

Re: -= Having Difficulty in C++? Be a Part of This Thread =-

@ezroot

yes sir parang ganun na nga opensource naman siya medyo di nga lang umaandar utak namin nung nakita namin yung loob :rofl:


Motion Detecting Webcam Software Ba? Na'implement ko na to before at madali lang. All you need is yung SDK for connecting sa WebCam at Algorithm ng Magcacalculate ng Differences per Frame ng ifenifeed ng webcam. Bali depende sa Amount of Motion/Difference Per Frame at threshold na ispespecify nyu, dun mag'rereact accordingly yung program nyu.

*Note: Kung Pwede kayo mg'rely sa third party library at c++ kayo, you can check OpenCV. Pero kung from scratch yung algorithm nyu, madali lng naman

Talaga sir? Sige willing akong pag aralan yan from scratch basta hindi matatagalan yung paggawa ng program kasi naghahabol na rin kami sa document + ang dami pa naming ginagawa school ngayon...

Tsaka sir willing din ang group namin na i-hire ka bilang programmer (if may time ka or kung ok lang sa inyo) babayaran ka na lang namin pero as of now, ayokong isipin mo na hindi kami gumagawa kaya malaking tulong sir kung maishashare mo samin yung paggawa ng motion detecting software.

And also sir by that you mean "SDK" ok lang ba gumamit niyan? kasi baka sabihin nanaman ng prof namin copyright yung ginagawa namen tulad nung dorgem app na nakuha namin sa internet
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

help niyo naman po ako

panu ko po ito gagawin na ganito?

Code:
Sample Input
3
3 5 4
1 2 1
3 3 1 

Sample Output
3 5 4 : RIGHT TRIANGLE WITH AREA 6.00000 UNITS SQUARED 
1 2 1 : NOT A TRIANGLE
3 3 1 : TRIANGLE WITH AREA 1.47902 UNITS SQUARED

eto po yung nagawa kong code.baka matulungan niyo po ako..bawal pong gumamit ng array

Code:
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
    double x,y,z;
    int N;
    float Area,s;
    
	cin >> N;
		if (N > 1000)
			return 0;
			
for (int i = 1; i <= N;i++)
   
   {
    cin >> x;
		if ( x > 5000)
			return 0;
	cin >> y;
		if ( y > 5000)
			return 0;
	cin >> z;
		if ( z > 5000)
			return 0;
	}
	
    for (int j = 1; j <= N;j++)	
    {
    	s = ( x + y + z ) / 2;
    	Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z ));
 
		int B = Area;
 
 
  
    	if ( (B % 3) == 0 && ( x != y != z))
		  {
    			cout << x << " " << y << " " << z ; 
    			printf (" : RIGHT TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);
		  }
	
		
		if ( Area == 0)
		  {
			cout << x << " " << y << " " << z ; 
			cout << " : NOT A TRIANGLE" << endl;
		  }
	
		
		else if ( (B % 3) > 0)
			{
    			cout << x << " " << y << " " << z ; 
    			printf (" : TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);

			}
   
}
    return 0;
}
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

up for the thread.
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

@ezroot

yes sir parang ganun na nga opensource naman siya medyo di nga lang umaandar utak namin nung nakita namin yung loob :rofl:




Talaga sir? Sige willing akong pag aralan yan from scratch basta hindi matatagalan yung paggawa ng program kasi naghahabol na rin kami sa document + ang dami pa naming ginagawa school ngayon...

Tsaka sir willing din ang group namin na i-hire ka bilang programmer (if may time ka or kung ok lang sa inyo) babayaran ka na lang namin pero as of now, ayokong isipin mo na hindi kami gumagawa kaya malaking tulong sir kung maishashare mo samin yung paggawa ng motion detecting software.

And also sir by that you mean "SDK" ok lang ba gumamit niyan? kasi baka sabihin nanaman ng prof namin copyright yung ginagawa namen tulad nung dorgem app na nakuha namin sa internet

Consult nyu nalang sa Prof nyu kung pwede gumamit ng Framework, Kasi yung OpenCV is Framework lng, building blocks kung baga and/or abstraction layer sa pag'connect to webcams, image processing, and ... , unlike sa dorgem na COMPLETE APP na talaga
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

help niyo naman po ako

panu ko po ito gagawin na ganito?

Code:
Sample Input
3
3 5 4
1 2 1
3 3 1 

Sample Output
3 5 4 : RIGHT TRIANGLE WITH AREA 6.00000 UNITS SQUARED 
1 2 1 : NOT A TRIANGLE
3 3 1 : TRIANGLE WITH AREA 1.47902 UNITS SQUARED

eto po yung nagawa kong code.baka matulungan niyo po ako..bawal pong gumamit ng array

Code:
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
    double x,y,z;
    int N;
    float Area,s;
    
	cin >> N;
		if (N > 1000)
			return 0;
			
for (int i = 1; i <= N;i++)
   
   {
    cin >> x;
		if ( x > 5000)
			return 0;
	cin >> y;
		if ( y > 5000)
			return 0;
	cin >> z;
		if ( z > 5000)
			return 0;
	}
	
    for (int j = 1; j <= N;j++)	
    {
    	s = ( x + y + z ) / 2;
    	Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z ));
 
		int B = Area;
 
 
  
    	if ( (B % 3) == 0 && ( x != y != z))
		  {
    			cout << x << " " << y << " " << z ; 
    			printf (" : RIGHT TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);
		  }
	
		
		if ( Area == 0)
		  {
			cout << x << " " << y << " " << z ; 
			cout << " : NOT A TRIANGLE" << endl;
		  }
	
		
		else if ( (B % 3) > 0)
			{
    			cout << x << " " << y << " " << z ; 
    			printf (" : TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);

			}
   
}
    return 0;
}

Mejo madumi ang code kung hindi gagamit ng array since hindi fixed yung num of inpus mo at ganyan yung style ng output mo. Pero ito yung implementation ko. Try mo kung pwedeng ipilit, modify mo nalang if ever

Code:
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
    double x,y,z;
    char choice;
    float Area,s;
    bool istriangle, isright;
    cout << "Triangle Checker and Area Solver" << endl << endl;
    do {

        cout << "Enter 3 sides of a triangle, space-separated (e.g 3 5 4): ";
        cin >> x;
            if ( x > 5000)
                return 1;
        cin >> y;
            if ( y > 5000)
                return 1;
        cin >> z;
            if ( z > 5000)
                return 1;

        //check if triangle using rules given: x, y, z, then x+y>z, x+z>y, and y+z>x
        if ((x+y>z) && (x+z>y) && (y+z>x)) {
            istriangle = true;

            //solve for area
            s = ( x + y + z ) / 2;
            Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z ));

            //checl if right
            if ((x*x) + (y*y) == (z*z)) {
                isright = true;
            } else {
                isright = false;
            }
        } else {
            istriangle = false;
            isright = false;
        }

        if ( istriangle){
            if (isright) {
    			cout << x << " " << y << " " << z ;
    			printf (" : RIGHT TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);
            } else {
                cout << x << " " << y << " " << z ;
    			printf (" : TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);
            }
        } else {
                cout << x << " " << y << " " << z ;
                cout << " : NOT A TRIANGLE" << endl;
        }

        cout << "\nRepeat [y/n] : ";
        cin >> choice;

    } while (choice == 'y'|| choice == 'Y');

    return 0;
}
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Mejo madumi ang code kung hindi gagamit ng array since hindi fixed yung num of inpus mo at ganyan yung style ng output mo. Pero ito yung implementation ko. Try mo kung pwedeng ipilit, modify mo nalang if ever

Code:
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
    double x,y,z;
    char choice;
    float Area,s;
    bool istriangle, isright;
    cout << "Triangle Checker and Area Solver" << endl << endl;
    do {

        cout << "Enter 3 sides of a triangle, space-separated (e.g 3 5 4): ";
        cin >> x;
            if ( x > 5000)
                return 1;
        cin >> y;
            if ( y > 5000)
                return 1;
        cin >> z;
            if ( z > 5000)
                return 1;

        //check if triangle using rules given: x, y, z, then x+y>z, x+z>y, and y+z>x
        if ((x+y>z) && (x+z>y) && (y+z>x)) {
            istriangle = true;

            //solve for area
            s = ( x + y + z ) / 2;
            Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z ));

            //checl if right
            if ((x*x) + (y*y) == (z*z)) {
                isright = true;
            } else {
                isright = false;
            }
        } else {
            istriangle = false;
            isright = false;
        }

        if ( istriangle){
            if (isright) {
    			cout << x << " " << y << " " << z ;
    			printf (" : RIGHT TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);
            } else {
                cout << x << " " << y << " " << z ;
    			printf (" : TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area);
            }
        } else {
                cout << x << " " << y << " " << z ;
                cout << " : NOT A TRIANGLE" << endl;
        }

        cout << "\nRepeat [y/n] : ";
        cin >> choice;

    } while (choice == 'y'|| choice == 'Y');

    return 0;
}


hindi po sir..

yung first input..magdedetermine kung ilang x,y,z ang iinput..kaya..di na po kailangan na lagyan ng choice yung code kung want pang mag-input o hindi na

base dun sa sample input..3 ang nakalagay..

edi..sa susunod na line..mag - iinput sya ng x,y,z ng tatlong beses..

then..pagkatapos mainput yung 3 beses na x,y,z

mag-aoutput na sya sa baba nung result nung 3x inputted x,y,z :salute:

ahm..kung gagamit ng array...nasa baba yung code..kaso..bawal pong gumamit ng array

#include <cstdlib>
#include <iostream>
#include <cmath>
#include <cstdio>

using namespace std;

int CheckIfRightTriangle(int x,int y,int z);
int CheckIfTriangle(int x,int y,int z);
float Area(int x,int y, int z);

int main(int argc, char** argv) {

int i,*x,*y,*z,N;

cin >> N;
if(N>1000) return 0;

x = new int[N];
y = new int[N];
z = new int[N];

for(i=0;i<N;i++)
{
cin >> x >> y >> z;
if((x>5000)||(y>5000)||(z>5000))
return 0;
}
cout << endl;
for(i=0;i<N;i++)
{
if(CheckIfRightTriangle(x,y,z)==1) {
cout << x << " " << y << " " << z ;
printf (" : RIGHT TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area(x,y,z));
continue;
}
if(CheckIfTriangle(x,y,z)==1) {
cout << x << " " << y << " " << z ;
printf (" : TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area(x,y,z));
}
else {
cout << x << " " << y << " " << z ;
cout << " : NOT A TRIANGLE" << endl;
}
}
return 0;
}
/*
return -1 if not triangle
return 1 if triangle
*/
int CheckIfTriangle(int x,int y,int z)
{
if(((x+y)>z) && ((x+z)>y) && ((y+z)>x))
return (1);
else
return (-1);
}

int CheckIfRightTriangle(int x,int y,int z)
{
int largest,temp,smallest,mid;

temp = x > y ? x:y;
largest = temp > z ? temp : z;

temp = x < y ? x : y;
smallest = temp < z ? temp : z;

mid = (x + y + z) - (smallest + largest);

if(largest * largest == mid * mid + smallest * smallest)
return 1;
else
return -1;
}

float Area(int x,int y, int z)
{
float s;

s = (float)( x + y + z ) / 2;
return (float)(sqrt ( s * ( s - x ) * ( s - y ) * ( s - z )));
}
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

hindi po sir..

yung first input..magdedetermine kung ilang x,y,z ang iinput..kaya..di na po kailangan na lagyan ng choice yung code kung want pang mag-input o hindi na

base dun sa sample input..3 ang nakalagay..

edi..sa susunod na line..mag - iinput sya ng x,y,z ng tatlong beses..

then..pagkatapos mainput yung 3 beses na x,y,z

mag-aoutput na sya sa baba nung result nung 3x inputted x,y,z :salute:

ahm..kung gagamit ng array...nasa baba yung code..kaso..bawal pong gumamit ng array

Sabi mo eh. My point is hindi ko alam kung saan na kayo banda ng lessons nyu at kung saan ba nanggaling ang problem at solution. Kasi para sakin masyadong pinacomplicate mo yung solution mo at yung problem mo nalang naman ay kung papaano mo i'oouput sa ganyang form. Anyways

Code:
#include <iostream>
#include <cstdio>
#include <cmath>
#include <sstream>
using namespace std;

int main()
{
    double x,y,z;
    int n;
    float Area,s;
    bool istriangle, isright;
    stringstream oss;
    cout << "Triangle Checker and Area Solver" << endl << endl;
    cout << "Enter no. of input/s: ";
    cin >> n;

    for (int i=0; i<n;i++) {
        cout << "Enter 3 sides of a triangle, space-separated (e.g 3 5 4): ";
        cin >> x;
            if ( x > 5000)
                return 1;
        cin >> y;
            if ( y > 5000)
                return 1;
        cin >> z;
            if ( z > 5000)
                return 1;

        //check if triangle using rules given: x, y, z, then x+y>z, x+z>y, and y+z>x
        if ((x+y>z) && (x+z>y) && (y+z>x)) {
            istriangle = true;

            //solve for area
            s = ( x + y + z ) / 2;
            Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z ));

            //checl if right
            if ((x*x) + (y*y) == (z*z)) {
                isright = true;
            } else {
                isright = false;
            }
        } else {
            istriangle = false;
            isright = false;
        }

        if ( istriangle){
            if (isright) {
    			oss << x <<" " << y << " " << z ;
    			oss << " : RIGHT TRIANGLE WITH AREA " << Area << " UNITS SQUARED\n";
            } else {
                oss << x << " " << y << " " << z ;
    			oss << " : TRIANGLE WITH AREA " << Area << " UNITS SQUARED\n";
            }
        } else {
                oss << x << " " << y << " " << z ;
                oss << " : NOT A TRIANGLE" << endl;
        }

    }
    cout << "\n" << oss.str();;

    return 0;
}
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Sabi mo eh. My point is hindi ko alam kung saan na kayo banda ng lessons nyu at kung saan ba nanggaling ang problem at solution. Kasi para sakin masyadong pinacomplicate mo yung solution mo at yung problem mo nalang naman ay kung papaano mo i'oouput sa ganyang form. Anyways

Code:
#include <iostream>
#include <cstdio>
#include <cmath>
#include <sstream>
using namespace std;

int main()
{
    double x,y,z;
    int n;
    float Area,s;
    bool istriangle, isright;
    stringstream oss;
    cout << "Triangle Checker and Area Solver" << endl << endl;
    cout << "Enter no. of input/s: ";
    cin >> n;

    for (int i=0; i<n;i++) {
        cout << "Enter 3 sides of a triangle, space-separated (e.g 3 5 4): ";
        cin >> x;
            if ( x > 5000)
                return 1;
        cin >> y;
            if ( y > 5000)
                return 1;
        cin >> z;
            if ( z > 5000)
                return 1;

        //check if triangle using rules given: x, y, z, then x+y>z, x+z>y, and y+z>x
        if ((x+y>z) && (x+z>y) && (y+z>x)) {
            istriangle = true;

            //solve for area
            s = ( x + y + z ) / 2;
            Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z ));

            //checl if right
            if ((x*x) + (y*y) == (z*z)) {
                isright = true;
            } else {
                isright = false;
            }
        } else {
            istriangle = false;
            isright = false;
        }

        if ( istriangle){
            if (isright) {
    			oss << x <<" " << y << " " << z ;
    			oss << " : RIGHT TRIANGLE WITH AREA " << Area << " UNITS SQUARED\n";
            } else {
                oss << x << " " << y << " " << z ;
    			oss << " : TRIANGLE WITH AREA " << Area << " UNITS SQUARED\n";
            }
        } else {
                oss << x << " " << y << " " << z ;
                oss << " : NOT A TRIANGLE" << endl;
        }

    }
    cout << "\n" << oss.str();;

    return 0;
}


ahm..eto plang po ang nadiscuss namin

Output statements (cout and cerr)
Input statements (cin)
Assignment statements
Operators and Expressions (+, -, *, /, %, ++, --, ? :, ()), and operator precedence
Relational Operators ( >, <, >=, <=, ==, != )
Library Functions (e.g., sqrt(), log(), exp(), pow(), cos(), sin())
And, Or, and Not operators (&&, ||, !)
Branching statements (if, if-else, switch-case)
Loop statements (for, while, do-while)

yung sa string..nadiscuss na namin..kaso..pag-input lang yun ng letter..exmple..name ng isang student..ganun lang po..pero yung ibang function pa ng sting..ay di pasamin dinidiscuss..at yung library na <sstream>...di pa po namin yan nadidiscuss :)
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

@ezroot

yes sir parang ganun na nga opensource naman siya medyo di nga lang umaandar utak namin nung nakita namin yung loob :rofl:




Talaga sir? Sige willing akong pag aralan yan from scratch basta hindi matatagalan yung paggawa ng program kasi naghahabol na rin kami sa document + ang dami pa naming ginagawa school ngayon...

Tsaka sir willing din ang group namin na i-hire ka bilang programmer (if may time ka or kung ok lang sa inyo) babayaran ka na lang namin pero as of now, ayokong isipin mo na hindi kami gumagawa kaya malaking tulong sir kung maishashare mo samin yung paggawa ng motion detecting software.

And also sir by that you mean "SDK" ok lang ba gumamit niyan? kasi baka sabihin nanaman ng prof namin copyright yung ginagawa namen tulad nung dorgem app na nakuha namin sa internet

Asaman83687's suggestion is actually a better idea. If you think about it you barely know anything about dorgem. That means you have to learn its code base from scratch which could possibly cause more delays to your project. I can tell you, code maintenance is no fun and modifying/updating it always leads to more frustrations. That OpenCV is more promising than you could ever look for in an image processing library. I think almost all the algorithms you need are already in there, so you are only left to worry about the bigger picture of you project instead of the nitty-gritty details.

Remember, always start your project with a well designed and organized documentation before you even begin coding. Assign tasks to your group mates so they know where to focus their efforts. Follow a well structured design pattern and avoid creating functions that perform multiple tasks. Design with OOP in mind if you are already familiar with OOD/OOP concepts and principles. Doing so will not only make the project modular, manageable, extensible, readable, etc., but it'll save your group a lot of time in the long run.

Also, you might wanna register your project to an online repo such as Google Code or GitHub then either use git or svn to upload code so you and your group can update whenever you want. You can also use it as a reference you can attach to your resume when you start looking for work. Some employers actually scan through potential employee's repo projects as part of their hiring tactics.

... and if you get stuck you can always come back and ask questions.
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Salamat mga sir. Kaso so... itatanong ko muna sa prof namin kung ok lang ba gumamit ng framework pero, sariling software na yung gagawin namin? Pasensya na mga sir medyo wala pa kasi akong alam sa software development pero I will try my best.
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

pano poh ba magsave ng input value sa array??
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Help naman po.baguhan lang ako sa C++/C
start muna ako sa basic.
wala naman error ang program ko bakit may lumilitaw na "project is not compiled"?gamit ko IDE Dev-C++.
ano ba maganda compiler at editor sa C++.?

At paano po magcomputer ng time.gumawa kasi ako ng payroll program.
exmaple po:
monday
time in:9:00 time out: 17:00
OT time In: 17:30 OT time out:19:30

tuesday
time in:9:00 time out: 17:00
OT time In: 17:30 OT time out:19:30

up to friday

tapus compute nya ung Overtime hours at total number of work hours.

Tulungan nyo naman ako.wala ako makita sa google.:upset:
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

merun po ba kayo tutorials sa "old style" na C++
version 3.0 po gamit namin di kami gumagamit nung "using namespce std"

tungkol po sa functions at arrays, yung mga nakaraang topics nag-goo-google lang ako at yung new style sample programs c++ kino-convert ko lang sa old style

pero sa functions at arrays mejo mahirap na
thanks in advance :)
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

saka pla yung strings na rin ng old style C++ thnx
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

merun po ba kayo tutorials sa "old style" na C++
version 3.0 po gamit namin di kami gumagamit nung "using namespce std"

tungkol po sa functions at arrays, yung mga nakaraang topics nag-goo-google lang ako at yung new style sample programs c++ kino-convert ko lang sa old style

pero sa functions at arrays mejo mahirap na
thanks in advance :)

Actually po hindi po yan c++ version 3. yan po ay Separate Specifications ng Borland Turbo C++ 3.0 kaya hindi gumagana yung using namespace std kasi ISO/GNU C yan i think. Bottom line, hindi po kasi ng'cocomply yung Borland C++ Compiler 3.0 sa Current Standards.
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Sir up ko lang po yung tanong ko ha about dun sa Artificial Intelligence proposal namin.

Itatanong ko muna sa prof ko kung ok lang gumamit ng Framework para sa sarili namin motion detecting software tama?

If na allow po ba pwede nyo po ba akong turuan ukol dun? :)
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

pwede poh bang dumipende ung array size sa user input??

e2 poh ung code:

#include <iostream>
#include <conio.h>
using namespace std;

void main() {

int myPID;

int myATime[myPID];

cout << "How Many Process ID Do You Want To Use? [1-50]" << endl;
cin >> myPID;

_getch();
}


nagkakaroon poh kasi ng underline dun sa int myATime[myPID]
 
Last edited:
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Help naman po.baguhan lang ako sa C++/C
start muna ako sa basic.
wala naman error ang program ko bakit may lumilitaw na "project is not compiled"?gamit ko IDE Dev-C++.
ano ba maganda compiler at editor sa C++.?

At paano po magcomputer ng time.gumawa kasi ako ng payroll program.
exmaple po:
monday
time in:9:00 time out: 17:00
OT time In: 17:30 OT time out:19:30

tuesday
time in:9:00 time out: 17:00
OT time In: 17:30 OT time out:19:30

up to friday

tapus compute nya ung Overtime hours at total number of work hours.

Tulungan nyo naman ako.wala ako makita sa google.:upset:

http://www.symbianize.com/showthread.php?t=769127
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

pwede poh bang dumipende ung array size sa user input??

e2 poh ung code:

#include <iostream>
#include <conio.h>
using namespace std;

void main() {

int myPID;

int myATime[myPID];

cout << "How Many Process ID Do You Want To Use? [1-50]" << endl;
cin >> myPID;

_getch();
}


nagkakaroon poh kasi ng underline dun sa int myATime[myPID]

dynamic array ba? gamit ka ng "new".

Code:
...
cout << "How Many Process ID Do You Want To Use? [1-50]" << endl;
cin >> myPID;
int* array = new int[myPID];
...
 
Re: -= Having Difficulty in C++? Be a Part of This Thread =-

Sir up ko lang po yung tanong ko ha about dun sa Artificial Intelligence proposal namin.

Itatanong ko muna sa prof ko kung ok lang gumamit ng Framework para sa sarili namin motion detecting software tama?

If na allow po ba pwede nyo po ba akong turuan ukol dun? :)

as far as we can. but your group still has to do much of the work. remember, people here are busy too.
just post whatever questions you have and we'll see if we can help.
 
Back
Top Bottom