Advanced Mathamatics??

Posts 16–23 of 23 · Page 2 of 2
Quote Originally Posted by R3V View Post
All i need to know for my future Career is

Addition, Subtraction, Multiplication, Division, and Percentages
Quote Originally Posted by LegendaryAbbo View Post
What is your future career?
Probably a prostitute.
Quote Originally Posted by GOD View Post
Probably a prostitute.
Man you are stupid!

Quote Originally Posted by CyberGenius View Post
Man you are stupid!


Quote Originally Posted by CyberGenius View Post
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>

void printline(int,int); //Fuction declaration
main()
{
int i,j=0,k=0,time,difference=6,count=0,mcnt=0,fcnt=0, choice;
char mname[1000],fname[1000],tfname[1000],tm[1000],tf[1000],ch='N';
char a[7]={"flames"};
int w=219,f=178,r=1,l=4,A=220,m=15,e=127,s=220;
clrscr();
printline(8,1); //Printing new lines
printf(" %c %c %c%c%c %c %c%c%c %c%c%c %c %c
%c%c%c
",w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c %c %c %c %c %c %c %c
%c
",w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c%c%c %c %c %c %c %c %c
%c%c%c
",w,w,w,w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c %c %c %c %c %c %c %c
%c
",w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c%c%c %c%c%c %c%c%c %c%c%c %c %c
%c%c%c
",w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w) ;
delay(1000); //Time delay fuction
printf("

to");
delay(1000);
clrscr();
printline(8,1);
printf(" %c%c%c %c %c %c %c %c%c%c
%c%c%c
",f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f);
printf(" %c %c %c %c %c %c %c %c %c

",f,f,f,f,f,f,f,f,f,f);
printf(" %c%c%c %c %c%c%c %c %c %c%c%c
%c%c%c
",f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f);
printf(" %c %c %c %c %c %c %c
%c
",f,f,f,f,f,f,f,f,f);
printf(" %c %c%c%c %c %c %c %c %c%c%c
%c%c%c
",f,f,f,f,f,f,f,f,f,f,f,f,f,f,f);
delay(1000);
printline(25,60);
clrscr(); //Clear srean fuction
printline(10,1);
printf("Enter the MALE Name %c :",11);
gets(mname); //Get the male name
strupr(mname); //String change to upper case
printf("

Enter the FEMALE Name %c :",12);
gets(fname); //Get the female name
strupr(fname); //String change to upper case
strcpy(tfname,fname);
if(mname[0]=='

copy and pasta
Quote Originally Posted by CyberGenius View Post
#include <stdlib.h>
#include <iostream.h>
#include <math.h>
#include <conio.h>

void main()
{
cout<<" Quadratic Equation Calculator"<<endl<<"
float a,b,c,x,y;
cout<<" Equation must be in the form of ax²+bx+c=0"<<endl<<endl;
cout<<" Please enter the value of a: ";
cin>>a;
cout<<" Please enter the value of b: ";
cin>>b;
cout<<" Please enter the value of c: ";
cin>>c;
x=((-b+sqrt((b*b)-(4.0*a*c)))/(2.0*a));
y=((-b-sqrt((b*b)-(4*a*c)))/(2*a));


clrscr();
cout<<"HERE IS THE SOLUTION USING FACTORISATION


";
cout.setf(ios::showpos);
float mul=(x*-1)*(y*-1);
cout<<" x²"<<(y*-1)+(x*-1)<<"x"<<mul<<"=0
";
cout<<" x²"<<y*-1<<"x"<<x*-1<<"x"<<(x*-1)*(y*-1)<<"=0
"; //
x²+2x-1x-2=0
cout<<" x(x"<<y*-1<<")"<<x*-1<<"(x"<<y*-1<<")=0
"; // x(x+2)-1(x+2)
cout<<" (x"<<x*-1<<")(x"<<y*-1<<")=0

"; // (x-1) (x+2)=0
cout.unsetf(ios::showpos);
cout<<" x="<<x<<" & x="<<y<<"
";
cout<<"


exit(EXIT_SUCCESS);
}


no just math less?
Math != programming. Programming in general requires some math(but it is mostly problem solving). Unless you're making a game, or some forms of software, then you need to be at a higher level w\ some knowledge of physics. Mind you, dem math for my (Java one)JevaEngine wasn't hard at all. But for my C++ version I needed to read a couple math papers. But I was using a pretty powerful physics engine.

Anehway, dat code makes me want to /suicide. So many reasons, I doubt it even compiles, how are you accessing the cout object without accessing via the std namespace? Also, lacks modular design. Asdfasdf, I'm not going to point out everything, but if you wrote ANYTHING CLOSE to that anywhere you'd be fired then killed for raping C++.
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>

void printline(int,int); //Fuction declaration
main()
{
int i,j=0,k=0,time,difference=6,count=0,mcnt=0,fcnt=0, choice;
char mname[1000],fname[1000],tfname[1000],tm[1000],tf[1000],ch='N';
char a[7]={"flames"};
int w=219,f=178,r=1,l=4,A=220,m=15,e=127,s=220;
clrscr();
printline(8,1); //Printing new lines
printf(" %c %c %c%c%c %c %c%c%c %c%c%c %c %c
%c%c%c
",w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c %c %c %c %c %c %c %c
%c
",w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c%c%c %c %c %c %c %c %c
%c%c%c
",w,w,w,w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c %c %c %c %c %c %c %c
%c
",w,w,w,w,w,w,w,w,w,w,w,w);
printf(" %c %c %c%c%c %c%c%c %c%c%c %c%c%c %c %c
%c%c%c
",w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w) ;
delay(1000); //Time delay fuction
printf("

to");
delay(1000);
clrscr();
printline(8,1);
printf(" %c%c%c %c %c %c %c %c%c%c
%c%c%c
",f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f);
printf(" %c %c %c %c %c %c %c %c %c

",f,f,f,f,f,f,f,f,f,f);
printf(" %c%c%c %c %c%c%c %c %c %c%c%c
%c%c%c
",f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f);
printf(" %c %c %c %c %c %c %c
%c
",f,f,f,f,f,f,f,f,f);
printf(" %c %c%c%c %c %c %c %c %c%c%c
%c%c%c
",f,f,f,f,f,f,f,f,f,f,f,f,f,f,f);
delay(1000);
printline(25,60);
clrscr(); //Clear srean fuction
printline(10,1);
printf("Enter the MALE Name %c :",11);
gets(mname); //Get the male name
strupr(mname); //String change to upper case
printf("

Enter the FEMALE Name %c :",12);
gets(fname); //Get the female name
strupr(fname); //String change to upper case
strcpy(tfname,fname);
if(mname[0]=='
i give up you win! i fail!
Posts 16–23 of 23 · Page 2 of 2

Post a Reply

Similar Threads

Talk with us