- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 4
- Upvoting Members
- 7
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Travel, books, music, movies, environmental conservation, meditation, and of course, C programming!
- PC Specs
- Arch Linux
Re: >moderator eyes have stopped completely working @ra527: Even after having been banned twice, why do you insist on posting such rude comments? You still have a lot to learn, not just about programming (your code is sloppy at best) but also on how to behave. | |
At work, I recently had an MBTI test done, and I came out as the INFP type. It seems to be a good indicator to my personality type, and offers some insight into the decision that I make. INFP personalities are associated more with ideals, music, and writing, but not … | |
Re: I do agree about the complexity part exceeding human comprehension. I currently work at a cancer hospital / research institute, and over the past few days have been struggling to link up one of our new CT scan machines with the vendor's server in Germany. It has stumped me, the … | |
Re: Hello, Robin! Might I suggest you read the following excellent article by Peter Norvig: "Teach Yourself Programming in Ten Years". Here's the link: http://norvig.com/21-days.html I hope you find the article insightful. | |
Re: I have been out of Daniweb for the past three years. Returning now, I see many pleasant changes. However, in one regard Daniweb has not changed -- it still seems to be flooded with homework problems! | |
| |
Re: Refer to the comments I have added to your original code. #include <stdio.h> #include <simpio.h> /* Remove this */ #include <genlib.h> /* Remove this */ main() /* Should be int main(void) */ { float c, f; /* Should be int f; float c; */ for (f=0,f<200,f++20); /* Should be for … | |
Re: > in ubuntu probably at User/Include/gcc On my Debian machine, the algorithm file can be found at one of the two locations: * /usr/include/c++/4.4 * /usr/include/c++/4.4.5 It should be similar on Ubuntu. Remember that on Linux, file paths are case-sensitive! | |
Re: What on earth are you trying to achieve with this program? My eyes have started watering just looking at your code! | |
Re: > how can i view the source code of my distro? I have not used CentOS, but in the Linux distros I have used, the kernel source code is generally found in the directory pointed to by the /usr/src/linux symlink. > do we need that if we were to create … | |
Re: Xubuntu is a good choice. You can download the LiveCD, and use it to boot your laptop. If everything works out OK, you can choose to install the OS. You can download it from here: http://xubuntu.org/ | |
Re: > my flashdrive is in (F;) Why are you running Turbo C from a flash drive? I think you would be better off installing it on your hard disk; that way at least you could ensure that the runtime directories are in their correct place. If you are using Windows … | |
Re: I think you need to declare the Game class in Entity.h like so: class Game {}; Declaring the Game class with an empty member list should make it a complete declaration. Without the empty member list, the class would have an incomplete declaration, which would not allow any objects of … | |
Re: I am not sure that I understand your question completely. A loop is a programming construct that repeatedly executes some code while a certain condition is true. Examples are the "for" and "while" constructs. If you are asking whether something like this is possible: for(;;) { main(); program(); } then … | |
Re: The link you posted discusses the ToJSON function -- this function is a T-SQL function, and NOT a C/C++ function. You will be able to call the ToJSON function only from within SQL Server stored procedures and functions, and not from C/C++ code. For your purpose, I think JsonGlib would … | |
Re: In order to use pthread_create() you will need to include <pthread.h>. Note that <pthread.h> is available only for POSIX systems. | |
Re: Have a look at this article; it may be of help: http://ubuntuforums.org/showthread.php?t=947124 | |
Re: I'm using Linux, so I can't try out DOS commands, but from what I recall both "date" and "ipconfig /all" are valid commands. Maybe I'm nit-picking here, but the OP's heading makes the question a bit ambiguous as to which command is giving the error. | |
Re: >You need to use your imagination. I agree with Squidge, you really should use your imagination -- it's a lot more fun then! Whenever I'm trying out a new bit of technology, I always make an application called "Ye Olde Pirate Shoppe", be it a desktop app or a web … | |
Re: I think you need to prepend the keyword "extern" in line 10 of globals.h like so: extern SDL_Surface* screen = NULL; I also think that you need to prepend "extern" before the declaration of all the other global variables in globals.h. | |
Re: Just out of curiousity, what relevance does this have to C? | |
Re: > Now, let me tell you a little secret about 'Being happy' "You are what you think. All that you are arises from your thoughts. With your thoughts you make your world." -- The Dhammapada | |
My understanding of the C language is that the same identifier cannot be reused. However, the code below compiles on GCC without complaints, even when using the "-Wall -pedantic" flags. Is there something that I am missing? Does the standard say anything about functions/macros having the same name as typedef'd … | |
Re: You can use a single call to scanf() as follows: int x, y, z; printf("Enter 3 integers separated by a space:"); scanf("%d %d %d", &x, &y, &z); | |
Re: You will get 100 if you change your printf() call as follows: printf("\n%.0f", *pf); The reason you are not getting 100 with your printf() call is essentially because computers represent floating point numbers and integers differently. The IEEE single-precision floating point format represents a floating point number as a 24-bit … | |
Re: @rithish: Have you checked the URL that you have posted? It hardly seems to have any relevance to the poster's question. @chandnigandhi: Since you are talking about a mini project, I would suggest you start out by thinking about some problem relevant to your daily life, and then developing a … | |
Re: Although it wasn't asked for, I would imagine that a backslash [icode] \ [/icode] would be required to terminate all but the last line. I would also imagine that two terminating curly braces [icode] }} [/icode] would be required on the last line. | |
Hello, world! This is my first post on DaniWeb, though I have frequented it quite often. I'm using gcc and make (on Ubuntu 10.10) with GVim for creating a foundation library in C. Within my code I've built in rudimentary profiling and assertion policies that are enabled through a symbolic … |