|
More site info...
C Programming | Forum profile
|
|
Forum profile page for C Programming on http://www.devshed.com.
This report page is the aggregated overview from a single forum: C Programming, located on the Message Board at http://www.devshed.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "C Programming" on the Message Board at http://www.devshed.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on C Programming:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
85
|
284
|
817
|
|
Post:
|
433
|
1,447
|
4,150
|
|
|
C Programming Posting activity graph:
|
Top authors during last week:
user's latest post:
Page 2 - Inheritance Problem -...
Published (2009-11-08 13:35:00)
It seems you are over-using inheritance. In the real world, we're all just a bag of water and other chemicals, but we don't classify ourselves as substances , we're collections of substances known as animals and we tend to classify ourselves as Human, a kind of primate with a large brain and also a member of the vertebrates. But we are also members of the class carbon based biped if you check the Hitchhiker's Guide To The...
user's latest post:
Help with locating all...
Published (2009-11-08 04:07:00)
Quote: Originally Posted by babyboi okay with a lot of help here is what i got to so far. i started of with the 2 suggestions but had to sway a little. i know the switch is not optimal but how else can i easily achieve this? i don want to have to write out another 26 lines for upper cases and same for special characters. Also how can I do this such that A or a are counted as 1 (i.e case does not matter)? Thanks. Expertise level varies,and by...
user's latest post:
[ANSI C,Unix/Windows]char *s VS...
Published (2009-11-05 08:19:00)
Not exactly sure where you are going. An array (s[]) is basically a const pointer that (supposed to be and enforced by the compiler) cannot be 'pointed' to any other memory location. Creating a variable like this: char s[] = "abc"; creates a 4 character array (one for the NULL) by the compiler (possibly on the stack, possibly in the data section). This: char *s; However, just creates a plain pointer which happens...
user's latest post:
Page 2 - Generic list with...
Published (2009-11-07 11:35:00)
Shows you the value of a debugger. I found your bug within 5-10 minutes without knowing any Italian .
user's latest post:
[ANSI C]Hex to Int converter
Published (2009-11-07 01:41:00)
Quote: Originally Posted by ptr2void What do you want, a cookie?? I will give you one if you can reduce the performance by 20% of this one.
user's latest post:
Page 3 - Any good...
Published (2009-11-05 13:45:00)
Oh and btw it's not that difficult, new problem, new THREAD. To effectively not waste time of other members who take time out to solve/help you out, you would do good, to mention a little about the background of the problem, like mentioning this is the erastoheneseses sieve??? Instead of just shoving code ... Regards proxy < all of us...
user's latest post:
[ANSI C]Hex to Int converter
Published (2009-11-07 04:14:00)
You should have use two separate threads, all the talk is about the second example, and seems to be ignoring the fact that you first example is nonsense. The variable hex is already an integer - no conversion is necessary. The internal representation of an integer is binary, all %x and %d do is translate that to or from various human readable forms. I suggest also that you loose teh hard-tabs and the excessive vertical space for teh sake of...
user's latest post:
Page 2 - Inheritance Problem -...
Published (2009-11-08 15:09:00)
Think about your car. It is made of objects. They are grouped (mostly) functionally. Your butterfly valve is not on your hood ornament and your crankshaft is not in the trunk. The mechanical advantage of your jack is not responsible for the ratio of engine revs to wheel revs. At least, I hope not.
user's latest post:
Dynamically allocate array using...
Published (2009-11-06 14:52:00)
thanx very much for the help The segmentation fault was due to error in my logic. now its been rectified .
user's latest post:
Inheritance Problem
Published (2009-11-08 11:19:00)
Quote: Originally Posted by Novos static char *screenArray[252]; [/font] This is what I wanted to make static but setting up some data passing system from instantiated objects to base is a little to complicated for me at the moment. Sprite USES the Screen. The Screen is its own entity, with its own characteristics. Place those members in another class that represents that entity, and use delegation from the Sprite class to interact with it....
|
|
|
|
Latest active threads on C Programming::
Started 2 days, 14 hours ago (2009-11-07 16:15:00)
by jwdonahue
Let me see if I understand your issue correctly.
You want instances of Hunter and Enemy to share some common data? Correct?
Started 3 days, 14 hours ago (2009-11-06 16:55:00)
by sizablegrin
Every position in the string will be a character. You'll find them beginning at index 0 and ending at index strlen()-1. Actually there'll be one at index strlen(); the latter will be the nul character.
If you have another question in mind, please formulate it and ask it clearly.
Started 1 week, 2 days ago (2009-10-31 20:57:00)
by Nyan
I'm sure you are just trying to pretend that you are putting effort ? Isn't it? Did you even compile the program that you posted?
Started 3 days, 6 hours ago (2009-11-07 00:30:00)
by jwdonahue
Your problem is that Console is not a complete type until you get to the end of the typedef declaration. You'll have to use a struct tag:
Code:
typedef struct Console_tag
{
....
void (*Hide)(struct Console_tag*) ;
....
}
}
Started 3 days, 2 hours ago (2009-11-07 04:52:00)
by jwdonahue
What exactly is the problem? Does your code compile? Does it crash?
Started 2 days, 13 hours ago (2009-11-07 17:19:00)
by jwdonahue
Where to begin?
Where does line get set? Is that what getInput() does? How do you synch that input with your loop? We need to see more code, including getInput() and every file and global scope variable involved.
Your tests of i don't seem to align with what you are comparing to either. When i == 4 your looking for "5" and when it's either 1 or 0 you are looking for "1".
Started 2 days, 14 hours ago (2009-11-07 16:09:00)
by jwdonahue
The trouble with this approach is that you may make it a little more difficult to reverse engineer, but you can't completely prevent reverse engineering. It sounds like what you really need is a good license manager, but there really isn't any such thing anywhere in the world. If you find something that does the trick, chances are it got used on more than one product and that made it ...
Started 3 days, 19 hours ago (2009-11-06 11:51:00)
by MadDogBrown
Quote:
anyone can help me?
Yes.
Terrible question: post some code with a specific question.
Do you even understand the concept of a sentinel node in a linked list?
Study the diagrams until it makes sense to you; it's a very basic concept that frees you from the extra step of doing an "end of list" check.
Started 3 days, 11 hours ago (2009-11-06 19:58:00)
by dspgro
Here is another program to squeeze one string by taking out common. The string s[] is squeezed , taking out chars in c.
Code:
void squeeze( char s[],char c[])
{
int i=0,j=0,k=0;
while(c[k]!='\0')
{
i=0;
j= 0;
while(s[i]!='\0')
{
if (s[i]!= c[k])
s[j++]=s[i];
i++;
}
k++;
s[j]='\0';
}
}
main()
{
char p...
|
|
Hot threads for last week on C Programming::
Started 1 week ago (2009-11-02 11:05:00)
by boygenius
Started 1 week ago (2009-11-02 16:38:00)
by IOI-RLZ
Started 1 week, 4 days ago (2009-10-29 23:00:00)
by sizablegrin
Think about how you might take an uninitialized array and initialize it at run time, using a loop.
Started 1 week, 1 day ago (2009-11-01 14:17:00)
by requinix
Try again.
- You don't say how to get N1, N2, and N3. Important because of the "should not be able to enter the same number more than once" restriction.
- There are typos.
- You don't use L_NUM or S_NUM anywhere.
- You don't determine L_NUM and S_NUM correctly.
- Your DOWHILE loop starts in the wrong place, if it's even necessary to begin with.
Started 5 days, 15 hours ago (2009-11-04 15:59:00)
by RAJ_55555
Started 3 days, 19 hours ago (2009-11-06 11:51:00)
by MadDogBrown
Quote:
anyone can help me?
Yes.
Terrible question: post some code with a specific question.
Do you even understand the concept of a sentinel node in a linked list?
Study the diagrams until it makes sense to you; it's a very basic concept that frees you from the extra step of doing an "end of list" check.
Started 2 days, 14 hours ago (2009-11-07 16:15:00)
by jwdonahue
Let me see if I understand your issue correctly.
You want instances of Hunter and Enemy to share some common data? Correct?
Started 3 days, 11 hours ago (2009-11-06 19:58:00)
by dspgro
Here is another program to squeeze one string by taking out common. The string s[] is squeezed , taking out chars in c.
Code:
void squeeze( char s[],char c[])
{
int i=0,j=0,k=0;
while(c[k]!='\0')
{
i=0;
j= 0;
while(s[i]!='\0')
{
if (s[i]!= c[k])
s[j++]=s[i];
i++;
}
k++;
s[j]='\0';
}
}
main()
{
char p...
Started 1 week ago (2009-11-02 17:31:00)
by johnybe
Started 3 days, 14 hours ago (2009-11-06 16:55:00)
by sizablegrin
Every position in the string will be a character. You'll find them beginning at index 0 and ending at index strlen()-1. Actually there'll be one at index strlen(); the latter will be the nul character.
If you have another question in mind, please formulate it and ask it clearly.
|
|