Forum: C Apr 14th, 2009 |
| Replies: 19 Views: 714 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 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 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 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 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 hehe, you should access sc.students then, not students. ;) |
Forum: C Nov 17th, 2008 |
| Replies: 12 Views: 1,916 #
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 Views: 390 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 Views: 963 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 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 "cannot convert from" is a C++ (and in general, OOP) only error afaik. |
Forum: C Jul 25th, 2008 |
| Replies: 15 Views: 1,411 You're getting C++ errors. C++ is a lot stricter. Try using a C compiler. ;) |
Forum: C Jun 17th, 2008 |
| Replies: 7 Views: 1,660 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 WndProc is a callback function. I don't call it. |
Forum: C May 24th, 2008 |
| Replies: 20 Views: 1,877 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 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 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 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 Open it for reading and writing? |