-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <iostream> | ||
int main() | ||
{ | ||
using namespace std; | ||
//×Ö·ûʹÓõ¥ÒýºÅ | ||
char ch = 'M'; | ||
cout<<ch; | ||
cin.get(); | ||
return 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dsdad | ||
sddsdga | ||
3134@da | ||
dsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <iostream> | ||
int main() | ||
{ | ||
using namespace std; | ||
cout << "Come up and C++ me some time."; | ||
cout << endl; | ||
cout << "You won't regret it!" << endl; | ||
cin.get(); | ||
return 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <iostream> | ||
int main() | ||
{ | ||
int carrots; | ||
|
||
carrots=25; | ||
std::cout<<"I have "; | ||
std::cout<<carrots; | ||
std::cout<<" carrots."; | ||
std::cout<<std::endl; | ||
carrots=carrots-1; | ||
std::cout<<"Crunch,crunch.Now I have "<<carrots<<" carrots."<<std::endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <iostream> | ||
int main() | ||
{ | ||
int carrots; | ||
|
||
std::cout<<"How many carrots do you have?"<<std::endl; | ||
std::cin>>carrots; | ||
std::cout<<" Here are two more."; | ||
carrots=carrots+2; | ||
|
||
std::cout<<"Now you have "<<carrots<<" carrots."<<std::endl; | ||
|
||
std::cin.get(); | ||
|
||
return 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <iostream> | ||
#include <cmath> | ||
|
||
int main() | ||
{ | ||
using namespace std; | ||
|
||
double area; | ||
double side; | ||
|
||
cout<<"Enter the floor area,in square feet,of your home:"; | ||
cin>>area; | ||
side=sqrt(area); | ||
cout<<"That's the equivalent of a square "<<side | ||
<<" feet to the side."<<endl; | ||
cout<<"How fascinating!"<<endl; | ||
cin.get(); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <iostream> | ||
using namespace std; | ||
int main() | ||
{ | ||
//'\a'·¢³öÉùÏì | ||
char alarm='\a'; | ||
cout<<alarm<<"Don't do that again!\a\n"; | ||
cout<<"Ben \"Buggsie\" Hacker\nwas here!\n"; | ||
cin.get(); | ||
return 0; | ||
} |