More Progress, and a Delay
Jan 10, 2012 Back-Stock News 1 commentWe've pushed back the release date, but are still working hard....
For all programmers who are skilled in C-style languages, and beginners who fish for new experience with these!
Introduction to Programming Using Java, Sixth Edition: Math.hws.edu
C++ tutorial Cplusplus.com and C++ reference Cplusplus.com
We've pushed back the release date, but are still working hard....
Portal 2: Back-Stock has come a long way, and its going to go much farther.
Modification of M.A.R.S. weapons - a simple tutorial.
How to quickly build M.A.R.S. on Ubuntu distribution?
An introduction to programming software based on evolution.
i only use C for embedded systems
Also a little login program ;D
#include <stdio.h>
#include <string.h>
#include <windows.h>
int main()
{
system("cls");
HANDLE consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consoleHandle, 10);
char username[11] = "programmer";
char usernameUI[11];
char password[8] = "ciscool";
char passwordUI[8];
Start:
printf("Username: ");
scanf("%s", usernameUI);
putchar('\n');
printf("Password: ");
scanf("%s", passwordUI);
putchar('\n');
printf("Checking please wait..........\n");
putchar('\n');
putchar('\n');
putchar('\n');
putchar('\n');
putchar('\n');
putchar('\n');
putchar('\n');
putchar('\n');
if(strcmp (username, usernameUI) == 0)
{
if(strcmp (password, passwordUI) == 0)
{
printf("You have been loged in succsesfully\n");
}
else
{
printf("Password or username are wrong\n");
goto Start;
}
}
else
{
printf("Password or username are wrong\n");
goto Start;
}
SetConsoleTextAttribute(consoleHandle, 7);
return 0;
}
note if you are going to try to compile this on linux or mac remove this:
#include <windows.h>
HANDLE consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consoleHandle, 10);
SetConsoleTextAttribute(consoleHandle, 7);
Hello I just joined this group and for all the starters check this page these are the best tutorials I have found: wibit.net
hey guys whats up! I like the group - looks really cool. So the groups curly brackets inspired me to post my favorite for loop, who can tell me what its famous output is? (b = 1, a = 0)
for(i = 0; i < range; i++) {
printf("%d\n", b );
b = a + b;
a = b - a;
}
En.wikipedia.org
ping
Hey guys, I'm learning C++ (and C#), but one of the main problems I'm running into is the structuring of my programs/games. The 'layout' so to speak. Are there articles or books that can help me out or is it a matter of just coding a lot and learning by making mistakes and rewriting programs?
I'm not sure what you are talking about so I'll just guess.
The problem of splitting up your project into different problems can be a bit tricky, one of the first things you should really learn is OOP (object oriented programming). And no, it's not because u are working with classes that you're doing a good job at OOP.
Another thing you should check out, but only after really understanding the concepts behind OOP, are patterns.
A quick google should give you lots of information on both topics.
Yeah that sounds helpful. I'm getting quite familiar with OOP now, I might check out those (design?) patterns :)
Howdy,
Yes "design patterns" because they help you in designing your code. A great book you could read is this one: Oreilly.com - it's in Java but still a pretty good read.
And this book is one of those that started it all: Amazon.com
Good luck with this, but don't get lost in patterns and try to apply them to everything. Practice makes perfect I guess.