[Browse] [Tag cloud]

Log on:
Powered by Elgg

Martynas Asipauskas :: Blog

March 22, 2011

Just finished writing my Text Processing utility, and realised that whilst project have made me a bit more comfortable in writing c++ code and redesigning your software as you go along.


The most important realisation was how source control makes you more comfortable in editing your own code and refactoring it to be much more efficient or flexible, you are no longer afraid, that you are going to mess up something - as if you do, you can always:



  • Look what changes you've made since the last commit.

  • Or just revert to earlier version of your code.


Overal I think the final project was very good oportunity to put the learning into practice and develop something useful and exciting.


p.s. It would be useful for RedGloo to have a spellchecker ;)

Keywords: 1st_year, final_project, se1sa5

Posted by Martynas Asipauskas | 0 comment(s) | Share

October 19, 2010

As the task for first programming practical, there was an assignment to think of more exciting Hello World type program.


The idea would be as follows:


·     write console C application which would take the person's first/last name as the input and respond in a way such as: Hello, <name entered>! or similar. 



Outcome of the following idea would be that, it would teach students not only to do basic output operations, as well basic input and variable definitions, which would make the process of learning how to program much faster.


The solution to he outlined task above is:


 // File: hello.c
#include

int main()
{
char name[40];
printf("Please enter your name: ");
// Get the name using console.
scanf("%s", name);
// Print the name out.
printf("Hello, %s!n", name);
return 0;
}

Keywords: Hello World, SE1SA5

Posted by Martynas Asipauskas | 1 comment(s) | Share

/