-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|469|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




Afr0

Sound algorithm

24th October 2009

Would it be technically possible to create an algorithm that could recognize whistles and match them to a tune in a library of soundfiles?
... I think whoever manages to come up with such an algorithm would become really rich.
In case somebody doesn't g*snip*


Afr0

How to make an emu?

21st October 2009

Wow, awesome! :D
Thanks!


Afr0

How to make an emu?

20th October 2009

Like DiablosDevil, I have started thinking about life after my current project (being Afr0 Messenger).
Sega Mastersystem II was my first gameconsole - ever! As such, I am very weak for this system, and have been thinking about making an emu in C++.
The p*snip*


Afr0

C++ class, Week 4

18th October 2009

1.
[code]
long Multiply(int A, int B)
{
return A * B;
}
[/code]
2.
[code]
//Will return the number of times it's been called
//if both parameters are equal to 0.
long Multiply(int A, int B)
{
static unsigned long long NumTimesCalled = 0; //Ju*snip*


Afr0

C++ class, Week 4

17th October 2009

[code]// The Snail Race.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <ctime>
#include <iostream>
using std::cout;
using std::cin;
//Function declarations
int Race(int, int);
void Race(void);
int Menu(*snip*


Afr0

C++ class, Week 4

17th October 2009

In this week's official class we've reached Chapter 4, which is about structuring your code with functions.
Challenges
1. Write a function that multiplies two numbers and returns the result.
2. Change the function you wrote in Challenge 1 so that it rem*snip*


Afr0

RIP Mario :(

14th October 2009

I know, I read it yesterday.
How sad! :(


Afr0

QOTD : Gotta Love Coding!

14th October 2009

Hm.
There are two points I like in particular, which are when you've finally managed to hunt down that illusive bug that's been gnawing you in your sleep for the past week and a half and when you've actually finished a game and submitted it to Socoder and*snip*


Afr0

C++ class, Week 3

12th October 2009

1.
[code]
if(y) x = x/y
if(y != 0)
x = x/y
[/code]
2.
[code]
unsigned int Summation(unsigned int N, unsigned int I)
{
return N * ((N + I) /2);
}
int _tmain(int argc, _TCHAR* argv[])
{
unsigned int Range = 5;
unsigned int Sum = 1;
std::c*snip*


Afr0

C++ class, Week 3

10th October 2009

Post your answers for Week 3! This week is about Control Statements.


Afr0

C++ class, Week 2

10th October 2009

1. 5
2. Not sure
3. std::string is a template class with lots of inbuilt functions for string manipulation. char pointers have to be deleted after use.


Afr0

Nobel Peace Prize

9th October 2009

'Since taking office in January, President Obama has pursued an ambitious international agenda including a push for peace in the Middle East and negotiations over Iran's nuclear programme.'


Afr0

Nobel Peace Prize

9th October 2009

I know, the whole thing seems a bit far-fetched (AFAIK he wasn't mentioned by anyone as a potential candidate), but I definately think he's not the worst choice they could have made...


Afr0

Nobel Peace Prize

9th October 2009

Obama won!
What do you think?
Personally I don't like his continiued fighting in Afghanistan, but I like his work for a world without nukes and his healthcare reform.
<flamewar>


Afr0

QOTD : Time Travel!

8th October 2009

I always wanted to see the October Revolution as it happened. Someone should make a movie about it, starring Brad Pitt!
Edit: And Johnny Depp!


Afr0

QOTD : I'm not fat!!!

8th October 2009

I used to drink Vodka and (sometimes) Tequila when I was programming, but these days I mostly drink Pepsi and Coke Zero, after realizing that alcohol wasn't very productive to my programming.


Afr0

C++ class, Week 2

4th October 2009

[code]// WeaponStore.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using std::cout;
using std::cin;
using std::string;
int _tmain(int argc, _TCHAR* argv[])
{
string Name; *snip*


Afr0

C++ class, Week 2

3rd October 2009

Another point not mentioned in the book;
You cannot directly initialize variables 'on the fly' inside of class declarations - unless the variable is constant or static.
[code]
class Test
{
int X = 5; //Will give you a compile error.
static int*snip*


Afr0

''OFFICIAL!!'' : Discuss

3rd October 2009

I think Official looks good, since it's the only C++ class on Socoder.
Also, BSS looks really bad. Too reminiscent of BS (Bullshit)


Afr0

C++ class, Week 2

3rd October 2009

We're still reading 'C++ Programming for the absolute beginner'.
This week, we're been covering Chapter 2, and now's the time for people to write their answers to the tasks at the end of the chapter!
Sorry for the delayed topic, I'm still reading Chapter*snip*


Afr0

Encrypting assets

27th September 2009

[quote]Afro That said, encryption and packing/compression are almost like two sides of the same thing.
No, it's really not.[/quote]
That depends how you see it.


Afr0

Encrypting assets

26th September 2009

[quote]IIRC, while it does packs them, I don't think it encrypts them.[/quote]
Obviously. You can't encrypt an exe file.
That said, encryption and packing/compression are almost like two sides of the same thing. Compression is encryption with an added pu*snip*


Afr0

Book Study Sessions, Book 1, Week 1

26th September 2009

[quote]The behavior is undefined[/quote]
I've always wondered - what does it mean that a behaviour is undefined? Does it mean possible bugs that they haven't tested and can't be bothered to take responsibility for?


Afr0

Book Study Sessions, Book 1, Week 1

25th September 2009

[quote]
Question: afr0 why do you actually use "std::" instead of just using using "namespace std;" on top?
[/quote]
Dunno, I just got used to doing it that way. :P
It's kinda handy cos in Visual Studio you can see all the functions in std when you typ*snip*


Afr0

Book Study Sessions, Book 1, Week 1

25th September 2009

The code for assignment 3 (had to fiddle around to make this work):
[code]#include <iostream>
#include <string>
int _tmain(int argc, _TCHAR* argv[])
{
std::string Name = "";
int Num1, Num2;
std::cout << "What's your name?" << std::endl;
std::ci*snip*

Newer Posts More - Older Posts