Giter Club home page Giter Club logo

learning-c's Introduction

Learning C

Rocks

cd rocks
gcc rocks.c -o rocks
./rocks

Outputs

$ ./rocks
C Rocks!

Cards

cd cards
gcc cards.c -o cards
./cards

Output

Enter card name: 
K
The card value is: 10

Card Count

cd cards
gcc cardcount.c -o cardcount
./cardcount

Output

Enter card name: 
K
The card value is: 10
Count has gone down

Sort

cd sort
gcc sort.c selection_sort.c -o sort -std=c99
./sort

Output

15 33 48 65 57 79 52 
Sort starting ...
Sort has ended. 
15 33 48 52 57 65 79

Temperature

This C code displays a Farhenheit to Celsius temperature table.

cd temperature
make
./temperature

Running the program will output:

  0       -17.8
 20        -6.7
 40         4.4
 60        15.6
 80        26.7
100        37.8
120        48.9
140        60.0
160        71.1
180        82.2
200        93.3
220       104.4
240       115.6
260       126.7
280       137.8
300       148.9

Cloud 9 Notes

Cloud 9 supports:

  • C++ 11
  • C++ 14

The C++ Workspace provides:

  • GCC version 4.8.4

To use C++ 11 functions pass

-std=c++11

/usr/bin/g++ -std=c++11 $file -o runme; chmod 755 $file_path/runme; $file_path/runme

To use C++ 14

/usr/bin/g++-5 -std=c++14 $file -o runme; chmod 755 $file_path/runme; $file_path/runme

References

learning-c's People

Contributors

stormwild avatar

Watchers

 avatar James Cloos avatar  avatar

learning-c's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.