Search Results

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: Clockowl ; Forum: C and child forums
Forum: C Apr 14th, 2009
Replies: 19
Solved: array help
Views: 714
Posted By Clockowl
Give it a shot here: http://www.cplusplus.com/doc/tutorial/

When you're stuck on a tutorial, you can ask for help of course.
Forum: C Nov 23rd, 2008
Replies: 5
Views: 2,028
Posted By Clockowl
Nah I just meant to say that if you're sure that you'll only use it on your system, why not use those compiler specific functions? I think it's overkill to make basically everything you create cross...
Forum: C Nov 23rd, 2008
Replies: 5
Views: 2,028
Posted By Clockowl
I'm more of a newb but feeling cocky as always:

Don't AVOID compiler specific functions, but be sure to find a cross-compiler way to do it as well, as in: find it, use it a couple of time,...
Forum: C Nov 18th, 2008
Replies: 12
Views: 1,916
Posted By Clockowl
Not in any imaginable way if you ask me. Like I said, a pointer to an array of pointers (an array of "arrays") resembles a 2D array. Unless you want that, there's no use for a double pointer.

You...
Forum: C Nov 17th, 2008
Replies: 12
Views: 1,916
Posted By Clockowl
It is only a pointer, don't worry. It's a pointer that points to pointers.

The struct declaration indeed only reserves one pointer, not an array or anything.

However, I guess you want to have...
Forum: C Nov 17th, 2008
Replies: 12
Views: 1,916
Posted By Clockowl
hehe, you should access sc.students then, not students. ;)
Forum: C Nov 17th, 2008
Replies: 12
Views: 1,916
Posted By Clockowl
#
students = malloc(sizeof(struct student));
#
strcpy(students[0]->name, "jack");

I might have missed it, but of what type is "students"? It seems to be an int, since the declaration is lacking...
Forum: C Oct 13th, 2008
Replies: 2
Solved: Regression
Views: 390
Posted By Clockowl
Regression? Don't you mean iteration? Could be wrong, but according to wiki (I had to look it up) regression is bug-related, not loop related like recursion.

If you mean iteration, then that is...
Forum: C Oct 12th, 2008
Replies: 4
Solved: c vs assembly
Views: 963
Posted By Clockowl
Define "doing the same thing".

I can drive to the store on my bike and in my car, doing 2 different things. Or I can say that I'm going to the store, doing one thing, in 2 ways.

C compilers...
Forum: C Jul 25th, 2008
Replies: 15
Views: 1,411
Posted By Clockowl
I just meant to say he's trying to create a C program I guess, using a C++ compiler since only a C++ compiler will throw that error. Nothing more.
Forum: C Jul 25th, 2008
Replies: 15
Views: 1,411
Posted By Clockowl
"cannot convert from" is a C++ (and in general, OOP) only error afaik.
Forum: C Jul 25th, 2008
Replies: 15
Views: 1,411
Posted By Clockowl
You're getting C++ errors. C++ is a lot stricter. Try using a C compiler. ;)
Forum: C Jun 17th, 2008
Replies: 7
Solved: Threads in dll
Views: 1,660
Posted By Clockowl
Shouldn't matter in what language your DLL is made, I think you need to figure out how to thread in RealBasic and call the functions from your realbasic program.
Forum: C May 24th, 2008
Replies: 20
Views: 1,877
Posted By Clockowl
WndProc is a callback function. I don't call it.
Forum: C May 24th, 2008
Replies: 20
Views: 1,877
Posted By Clockowl
So, declare a static struct in WndProc and pass a pointer... That makes sense. Thanks.
Forum: C May 23rd, 2008
Replies: 20
Views: 1,877
Posted By Clockowl
I'm writing this windows app and I can't figure out how to let the user manipulate data (in a function called by WndProc) without using globals. Do you think it's better to use one global...
Forum: C May 20th, 2008
Replies: 20
Views: 1,877
Posted By Clockowl
Well, I tend to use them when it saves me adding numerous parameters to some functions. I think you can use global variables, but you should at least limit most of them to one source file with the...
Forum: C May 15th, 2008
Replies: 18
Views: 1,065
Posted By Clockowl
Just open it for reading and writing. Write to it, read from it.

What's the problem? You can find how fopen works for reading and writing on numerous C reference sites.
Forum: C May 15th, 2008
Replies: 18
Views: 1,065
Posted By Clockowl
Showing results 1 to 19 of 19

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC