Showing posts with label program. Show all posts
Showing posts with label program. Show all posts
Wednesday, February 1, 2012
Basic Programming - ROBO Pro
Here's my ROBO Pro program that turn waits for an input, in the form of a switch in this case. Once the statement is True, the motor turns on for 3 seconds, off for 1 second, on for 4 seconds, and finally turns off as the program ends.
Tuesday, October 11, 2011
First C++ Program: Hello, World!
So this is LONG overdue, seeing as how I created this basic program a few weeks back.
But long behold the beginner's milestone of basic programming in all of its glory: Hello, World!
Basic, yes. Easy, yes. But a stepping stone nevertheless.
#include <iostream>
using namespace std;
/*
*
*/
int main() {
cout << "Hello World!";
cout << "I'm a C++ program";
return 0;
}
So I'm currently using NetBeans IDE because Eclipse was acting up for some reason. And what's also nice about NetBeans is that it's capable of creating various Java programs (it's main purpose), however it also can support C++ as well.
But long behold the beginner's milestone of basic programming in all of its glory: Hello, World!
Basic, yes. Easy, yes. But a stepping stone nevertheless.
#include <iostream>
using namespace std;
/*
*
*/
int main() {
cout << "Hello World!";
cout << "I'm a C++ program";
return 0;
}
So I'm currently using NetBeans IDE because Eclipse was acting up for some reason. And what's also nice about NetBeans is that it's capable of creating various Java programs (it's main purpose), however it also can support C++ as well.
Subscribe to:
Posts (Atom)