Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: climbnorth
Forum: C Oct 7th, 2006, 8:16 PM
Replies: 2
Views: 225
Posted By climbnorth
Calling an undeclared or undefined function in C/C++

I am wondering, if a function has not been declared or defined- is it yet a function? I guess my question is: If something has no declaration, and no definition- does it exist? What has no...
Forum: C++ Oct 7th, 2006, 8:13 PM
Replies: 23
Views: 550
Posted By climbnorth
Dawei: Thank you yes, for pointing this out. I...

Dawei:
Thank you yes, for pointing this out. I made a big mistake by saying C code is 100% compatible with C++. I have started another thread for this discussion regarding the example that you...
Forum: C++ Oct 7th, 2006, 3:59 PM
Replies: 23
Views: 550
Posted By climbnorth
Seif: I agree, it is a nice luxury to use...

Seif:
I agree, it is a nice luxury to use vectors, but like I had mentioned (and mention several times below) I was using this as an example. This example was posed as an alternate method that...
Forum: C++ Oct 6th, 2006, 12:54 AM
Replies: 23
Views: 550
Posted By climbnorth
In response to: I have started a new thread in...

In response to:



I have started a new thread in C forum to discuss the validity of my implementation. For those who are interested, I have implemented my previous example of what I call, a 2D...
Forum: C Oct 6th, 2006, 12:46 AM
Replies: 3
Views: 187
Posted By climbnorth
My version of 2D array.. is this wrong??

I received some comments in th C++ forum regarding this implementation, that it is incorrect and doesn't (or shouldn't) work.



This example creates a 2D array. I am passing the 2D array by...
Forum: C++ Oct 5th, 2006, 9:54 PM
Replies: 23
Views: 550
Posted By climbnorth
Do you have something against me?? I am just...

Do you have something against me??

I am just mentioning what I like to use and how I use it to accomplish my goals when using an array. My comment about resizing (what I considered to be) an array...
Forum: C++ Oct 5th, 2006, 6:42 PM
Replies: 23
Views: 550
Posted By climbnorth
Narue- I don't understand, can you elaborate? ...

Narue-

I don't understand, can you elaborate? I don't understand what you mean by simulation of an array.
Forum: C++ Oct 5th, 2006, 6:19 PM
Replies: 23
Views: 550
Posted By climbnorth
Pizentios: On the contrary, you can reallocate...

Pizentios:

On the contrary, you can reallocate memory using "realloc". This is useful if you want to constantly change the size of your chunk of memory.

Below- making CSV of...
Forum: C++ Oct 4th, 2006, 11:22 PM
Replies: 23
Views: 550
Posted By climbnorth
if you want to go with teh array of arrays route...

if you want to go with teh array of arrays route using something like a char **, its not difficult but its a lot of work writing from scratch something that is not as flexible as a vector.

The below...
Forum: C Oct 4th, 2006, 11:10 PM
Replies: 9
Views: 258
Posted By climbnorth
There are many ways to do this- here is an...

There are many ways to do this- here is an example:

windows has a mechanism where you can wait for a certain event (there is something similar for pthreads as well) to be signaled.

You can have a...
Forum: C++ Oct 1st, 2006, 11:15 PM
Replies: 4
Views: 248
Posted By climbnorth
Realize that "you can't print the matrix until...

Realize that "you can't print the matrix until you know how long the longest value is". If this were my problem, I would look at all the numbers and find out which one is longest. Then go ahead...
Forum: C Oct 1st, 2006, 11:03 PM
Replies: 9
Views: 397
Posted By climbnorth
I suggest using cygwin to write your c on the...

I suggest using cygwin to write your c on the windows box. Most likely, all you would need to do is recompile on the unix box.
Forum: C Oct 1st, 2006, 10:52 PM
Replies: 19
Views: 472
Posted By climbnorth
At the terminal type: $ ps -auxwww if that...

At the terminal type:

$ ps -auxwww

if that doesn't work try:

$ ps -aef

(I think thats the syntax) That will show you list of all processes and some otehr information that is useful: such as...
Forum: C Oct 1st, 2006, 12:57 AM
Replies: 21
Views: 477
Posted By climbnorth
Here is some example code for allocating memory...

Here is some example code for allocating memory for your records and then deleting it:


int iter = 0;
records *ptr; /* For the array of records */
ptr = (record*)calloc(numRecords,...
Forum: C++ Oct 1st, 2006, 12:40 AM
Replies: 21
Views: 660
Posted By climbnorth
you are allocating mem to buffer 2x in that loop-...

you are allocating mem to buffer 2x in that loop- I hope that has been fixed I did not see mention of that specifically. Also, take your declaration out of your loop.
Forum: C++ Oct 1st, 2006, 12:21 AM
Replies: 3
Views: 227
Posted By climbnorth
Look at this page for using recv, should...

Look at this page for using recv, should help:

http://www.opengroup.org/onlinepubs/009695399/functions/recv.html

Realize that recv returns a value. That value is how many bytes were read.
So read...
Showing results 1 to 16 of 16

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC