... What you are looking for is a class that has only static methods. However, the bigger question is why are you using a class when you can just make...
Hello, My makefile skills are horrible as it is, but, I'm looking for some pointers. I've got a folder called "core" which holds the core library components. ...
Tyler Littlefield
tyler@...
Nov 29, 2008 2:15 am
68880
... The typical way is to create a fake target and set all of your executables a dependency: all: exe1 exe2 exe3 exe1: obj1.o obj2.o exe2: obj1.o obj3.o exe3:...
... Look to the internet. Whilst there are common elements, makefile formats can and do differ between different implementations. ... The doco, man make, F1,...
... <snip> ... Please don't start a new thread by replying to an existing totally unrelated thread. At the very least, remove the other post from yours! -- ...
... I wasn't aware email wasn't internet based, maybe I should go back to square one and learn about email. Thanks, Tyler Littlefield email:...
Tyler Littlefield
tyler@...
Nov 29, 2008 2:51 am
68885
hello bret, thanks, that's pretty much what I needed. I hadn't thought of doing the dependencies like that, but it helps quite a bit. Rather than making the...
Tyler Littlefield
tyler@...
Nov 29, 2008 2:52 am
68886
... The Gnu 'make' manual is a good starting point, even if you're not using Gnu 'make': http://www.gnu.org/software/make/manual/ There's also an O'Reilly...
thanks, I'll take a look. I've managed to cobble something together, but it's not much. Thanks, Tyler Littlefield email: tyler@... web: tysdomain-com...
Tyler Littlefield
tyler@...
Nov 29, 2008 1:27 pm
68888
"<Sam> Coding in C is like sending a 3 year old to do groceries. You gotta tell them exactly what you want or you'll end up with a cupboard full of pop tarts...
Hello Guys, Can anyone help out on how to take in 3 character input for execution in a program...! *printf("Enter the type of bread you want to make: \n"); ...
... I would use fgets() to read in a line of input, then use sscanf() on the line. #include <stdio.h> int main(void) { char buf[100], type, size, baking_type; ...
... But couldn't you say that about programming computers in general? Ok, I'm well aware that it's easier to make a mess in C than in some (most?) other...
Enter your vote today! A new poll has been created for the c-prog group: Is US Patent 7028023 valid? For those who do not know what is it about: ...
c-prog@yahoogroups.com
Dec 1, 2008 4:05 am
68894
I never knew that there was a patent for a linked list ... From: c-prog@yahoogroups.com <c-prog@yahoogroups.com> Subject: [c-prog] New poll for c-prog To:...
... ...and you could also use a function to simplify: #include <stdio.h> static char get_reply(const char *prompt) { char buf[100], c; printf("Enter %s:\n",...
... It's clearly invalid, due to the existence of huge amounts of prior art. If corporations want to waste their money on patenting things like this, let them...
Dear all, I allocated memory to one array, which stores data from one file, and I made a condition that if one data being read using fscanf() is larger than...
... It's a good idea to use fgets(), where you can specify a maximum number of characters to read. If you malloc() 42 bytes then tell fgets() to read 42...
... In the case of fgets(), a terminating '\0' is helpfully included in the count, unlike most string functions where a string of n chars needs storage of n+1...
... And don't forget that fgets() adds a '\n' to the end of the string if there are n-2 or less characters in the input. Actually I think what the OP was...
... Are you trying to read a whole file? If so, why? ... Only if it is dynamically allocated. Since you haven't shown any code, most of the replies have...
... First you need to come up with a data structure to represent polygons. Then you need an algorithm to work out whether a point is inside or outside the...
I have a old but looks like a good book on learning c++ it uses a codewarrior professional 5 series. Do's anybody know is this version still available new or...