Search found 1649 matches

by avansc
Wed Nov 05, 2008 9:40 am
Forum: Programming Discussion
Topic: Pointers and their Application.
Replies: 16
Views: 3134

1.11 - heap management

1.11 - heap management this section i will tell you about the functions C provide for memory allocation. all of the return the void* pointer that is typeless. 1.11.1 - allocation there are 2 primarty functions malloc() and calloc() . both functions return a void*: void *malloc(size_t requestedSize)...
by avansc
Wed Nov 05, 2008 9:24 am
Forum: Programming Discussion
Topic: Pointers and their Application.
Replies: 16
Views: 3134

1.10 STD type defs

1.10 STD type defs

when using pointers allways use sizeof() when in combination of malloc

C provides a header file stddef.h that defines several universal data types.

using malloc(sizeof( . . . )) is save and will allways be portable.
using malloc(v) where v is type long is not.
by avansc
Wed Nov 05, 2008 9:21 am
Forum: Programming Discussion
Topic: Pointers and their Application.
Replies: 16
Views: 3134

1.9 - conversions

1.9 - conversions in practice this should be avoided at all costs, im not going to give this a big section. i almost omitted it. storage alignment means that storage units must begin on cetain addressing boundries. for example, on a byte-oriented machine, a 16-bit work may have to start on a multipl...
by avansc
Wed Nov 05, 2008 8:44 am
Forum: Game Development
Topic: A game, that'll probably never exist.
Replies: 26
Views: 3488

Re: A game, that'll probably never exist.

A few things stuck out to me when reading your post, namely being: 1. "MMORPG with many unique features not like anyother." 2. "Because I'm like the only person in the team that actually knows any knowledge of game development" 3. "Funny thing is that he doesn't know much p...
by avansc
Wed Nov 05, 2008 8:33 am
Forum: Programming Discussion
Topic: Challenge 3 - Binary.
Replies: 17
Views: 1978

Re: Challenge 3 - Binary.

i could post a solution for numbers divisible by 3, then change the challenge to divisible by 5. note: making it divisible by 5 takes a bit more brainpower to keep track of thinks, but you can get there if you follow what divisible by 3 does. also, drawing a finite state machine helps alot. having a...
by avansc
Tue Nov 04, 2008 10:30 pm
Forum: Programming Discussion
Topic: C Challenge #1
Replies: 7
Views: 933

C Challenge #1

write a funtion in C, that will take any number of strings or char* arguments, concatenate them, malloc memory and return the pointer to the new string. this is a very useful tool, and i suggest doing this, just so you know how to. ps: ever wonder why printf can take variable length arguments. hint:...
by avansc
Tue Nov 04, 2008 10:15 pm
Forum: Programming Discussion
Topic: Programming Terms
Replies: 84
Views: 20895

Re: Programming Terms

not at all. i respect your opinion and i'll give you my reasoning. i love when people voice their opinions because i might learn something from it. so never fret if you want to tell me something you think i might be wrong about. i'll listen. no to justify my statements. avansc wrote:* jagged array ...
by avansc
Tue Nov 04, 2008 9:27 pm
Forum: Programming Discussion
Topic: Challenge 3 - Binary.
Replies: 17
Views: 1978

Re: Challenge 3 - Binary.

Yeah, lots and lots of homework assignments in this end as well. I glanced at the challenge: I'm curious though, when you say that you can't convert the string to numbers, that means that something like this is not valid, correct?: std::string str = "101"; printf("%d", atoi(str....
by avansc
Tue Nov 04, 2008 9:17 pm
Forum: Programming Discussion
Topic: Programming Terms
Replies: 84
Views: 20895

Re: Programming Terms

refactoring: aka, rewriting a lot of shit. This happens to me too much. actually refactoring is making code more readable by takeing functions and braking them up into smaller functions, while maintaining the original functionality. if you refactor to much, that means you dont plan your code enough...
by avansc
Tue Nov 04, 2008 7:49 pm
Forum: Programming Discussion
Topic: the one program the saves my life.. daily
Replies: 3
Views: 686

the one program the saves my life.. daily

http://en.wikipedia.org/wiki/Grep

learn to use this, if you do not have a unix based OS, then install cygwin.

http://www.cygwin.com/
by avansc
Tue Nov 04, 2008 7:33 pm
Forum: Programming Discussion
Topic: Programming Terms
Replies: 84
Views: 20895

Re: Programming Terms

how about these?

black box testing
white box testing
Regression testing
distributed-memory architectures
deadlock
Euler tours and Hamilton cycles
Non-determinism
context-free grammars, and Turing machines
by avansc
Tue Nov 04, 2008 7:28 pm
Forum: Programming Discussion
Topic: Programming Terms
Replies: 84
Views: 20895

Re: Programming Terms

Ha, mkay. * Superclass, Parentclass : dont need to know this, its balderdash, only study if you plan on java, C# * Subclass, childclass : look one up * scope : where and where not a variable can be seen in a program * heap, freestore : just types of memory * overhead : research Big Oh * dynamic : c...
by avansc
Tue Nov 04, 2008 7:18 pm
Forum: Programming Discussion
Topic: Programming Terms
Replies: 84
Views: 20895

Re: Programming Terms

Arce, that's a damn fine list! Here's a few more off the top of my head: * hash : a one way function that is one to one only. used in cryptography extensivly, (every time you log onto windows it does not compare your pasword, but rather the hash of your password) * by ref vs. by val : passing the m...
by avansc
Tue Nov 04, 2008 7:06 pm
Forum: Programming Discussion
Topic: Assembly Homework
Replies: 15
Views: 2492

Re: Assembly Homework

imo an easy way to learn assembly is to start at a level that is very easy to understand. HLA (high level assembly) was actually created to move people into assembly very smoothly. What i would do is learn all the high language features then move your way into pure assembly eventually it will be li...
by avansc
Tue Nov 04, 2008 7:00 pm
Forum: Programming Discussion
Topic: Assembly Homework
Replies: 15
Views: 2492

Re: Assembly Homework

ultimatedragoon69 wrote:currently working on my BA in computer science.
BA?