Compare commits

...

No commits in common. 'master' and 'mo' have entirely different histories.
master ... mo

@ -1,28 +0,0 @@
# Project: ÏîÄ¿1
# Makefile created by Dev-C++ 5.11
CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
OBJ = main.o
LINKOBJ = main.o
LIBS = -L"D:/Dev-Cpp/MinGW64/lib" -L"D:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -g3 -g3
INCS = -I"D:/Dev-Cpp/MinGW64/include" -I"D:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS = -I"D:/Dev-Cpp/MinGW64/include" -I"D:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN = ÏîÄ¿1.exe
CXXFLAGS = $(CXXINCS) -g3 -g3
CFLAGS = $(INCS) -g3 -g3
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)

@ -1,9 +0,0 @@
#include<math.h>
#define e 2.718281828
float EXP(float x) {
float h;
h = pow(e, x);
return h;
}

@ -1,8 +0,0 @@
#include<math.h>
float l;
//logax
float LOG(float x,float a) {
l = log(x) / log(a);
return l;
}

38
c.hpp

@ -1,25 +1,29 @@
#include<stdio.h>
float ADD(float x) {
float h;
h = x+5;
return h;
float add(float a,float b)
{
int k=a+b;
return k;
}
float SUB(float x) {
float h;
h = x-5;
return h;
float sub(float a,float b)
{
int k=a-b;
return k;
}
float MUL(float x) {
float h;
h = x*5;
return h;
float multiply(float a,float b)
{
int k=a*b;
return k;
}
float DIV(float x) {
float h;
h = x/5;
return h;
float division(float a,float b)
{
if(b!=0)
{
int k=a/b;
return k;
}
else printf("Denominator cannot be zero");
}

28
d.hpp

@ -1,28 +0,0 @@
#include<math.h>
#define pi 3.14159265
float h;
float SIN(float a)
{
h=a*pi/180;
return sin(h);
}
float COS(float b)
{
h=b*pi/180;
return cos(h);
}
float TAN(float c)
{
h=c*pi/180;
return tan(h);
}
float COT(float d)
{
h=d*pi/180;
return 1/tan(h);
}

@ -1,102 +0,0 @@
[Project]
FileName=ÏîÄ¿1.dev
Name=jisuanqi
Type=1
Ver=2
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
LogOutput=
LogOutputEnabled=0
OverrideOutput=0
OverrideOutputName=ÏîÄ¿1.exe
HostApplication=
UseCustomMakefile=0
CustomMakefile=
CommandLine=
Folders=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000000001000000
UnitCount=5
[VersionInfo]
Major=1
Minor=0
Release=0
Build=0
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=1.0.0.0
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
AutoIncBuildNr=0
SyncProduct=1
[Unit1]
FileName=main.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit2]
FileName=d.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit3]
FileName=a.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit4]
FileName=b.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit5]
FileName=c.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

Binary file not shown.

@ -1,28 +0,0 @@
[Editors]
Order=0,2,1,3,4
Focused=0
[Editor_0]
CursorCol=39
CursorRow=41
TopLine=1
LeftChar=1
[Editor_1]
CursorCol=1
CursorRow=1
TopLine=1
LeftChar=1
[Editor_2]
CursorCol=1
CursorRow=5
TopLine=1
LeftChar=1
[Editor_3]
CursorCol=2
CursorRow=8
TopLine=1
LeftChar=1
[Editor_4]
CursorCol=1
CursorRow=25
TopLine=1
LeftChar=1

@ -1,52 +0,0 @@
#include<stdio.h>
#include "a.hpp"
#include "b.hpp"
#include "c.hpp"
#include "d.hpp"
int main()
{
int op;
float x,sum ;
printf("1. e^x\n");
printf("2. log2x\n");
printf("3. x+5\n");
printf("4. x-5\n");
printf("5. x*5\n");
printf("6. x/5\n");
printf("7. sinx\n");
printf("8. cosx\n");
printf("9. tanx\n");
printf("10. cotx\n");
printf("0. exit\n");
printf("Firts,please set the value of x\n");
scanf("%f",&x);
while(1)
{
printf("Then,please select the opration\n");
scanf("%d",&op);
switch(op)
{
case 1 :printf("%f\n",EXP(x));break;
case 2 :printf("%f\n",LOG(x,2));break;
case 3 :printf("%f\n",ADD(x));break;
case 4 :printf("%f\n",SUB(x));break;
case 5 :printf("%f\n",MUL(x));break;
case 6 :printf("%f\n",DIV(x));break;
case 7 :printf("%f\n",SIN(x));break;
case 8 :printf("%f\n",COS(x));break;
case 9 :printf("%f\n",TAN(x));break;
case 10 :printf("%f\n",COT(x));break;
case 0 :break;
default :printf("error\n");break;
}
if(!op)
break;
}
printf("thanks");
return 0;
}

BIN
main.o

Binary file not shown.

@ -0,0 +1,3 @@
#include<stdio.h>
printf("wc");
Loading…
Cancel
Save