Current location - Recipe Complete Network - Diet recipes - How to write raspberry pie under windows or linux (C language or C++)?
How to write raspberry pie under windows or linux (C language or C++)?
Raspberry Pi (Chinese name is "Raspberry Pie", abbreviated as RPi, or RasPi/RPi) is designed for students' computer programming education. It is a card computer the size of a credit card, and its system is based on Linux. Since its inception, it has been sought after by many computer enthusiasts and makers, and it was once hard to find "pies". Although petite in appearance, but strong in heart, audio-visual and other functions are readily available. It can be said that "the sparrow is small and complete."

Raspberry pie is learning-oriented. You can learn operating system, programming, embedded programming, industrial control, artificial intelligence and so on. More comprehensive than other models such as arduio. Of course, it is also weak in some aspects. In foreign countries, the function of raspberry pie is almost brought into full play. There are raspberry pies in almost all fields. From parallel computing to robotics, to 3D printing, space exploration, home security, routers and PADs. The usage at home and abroad is basically the same. It's just that China people use it more for their families. They are all small toys played by people with strong hands-on ability.

Raspberry pie system is based on Linux. Therefore, the programming in Raspberry Pie is exactly the same as that in Linux, and the program is compiled and run by a compiler under Linux. Raspberry pie can't be programmed under windows.

General:

//Create a hello.c file under the home/pi/ folder and enter the following contents.

# Contains? & ltstdio.h & gt

Invalid? Major (invalid)

{

Printf ("Hello! ? This? Is it? Mine? First of all? c? Program. \ r \ n ");

}

//Enter gcc at the terminal? hello.c? -Oh? Hello? Realize the compilation and connection of hello.c

//./Hello? Execute the generated executable file hello.