Forum: Computer Science May 13th, 2005 |
| Replies: 4 Views: 2,771 Fiyona,
I don't want to get on your case, but would it be too hard to "Preview" what you've written before you submit? We all make spelling and grammatical errors (God knows I do), but you've... |
Forum: C May 13th, 2005 |
| Replies: 8 Views: 4,830 Oh and I fixed my little C program to correctly add in the bbCode for preprocessor directives and comments :-)... I really detest DaniWeb's "You have thirty minutes to edit your post" rule :/
... |
Forum: C May 13th, 2005 |
| Replies: 8 Views: 4,830 Well why didn't you say any of this in your first post? As far as I know, "stdio.h" is part of the standard C library. I had to infer from your ugly ass code what you were trying to do and in what... |
Forum: C May 13th, 2005 |
| Replies: 8 Views: 4,830 Hello... your code... is well.... um, yeah... here is a very basic example of how to get input from the keyboard in C (in the console) that I whipped up just for you
Generated: Fri May 13 01:22:44... |
Forum: C May 13th, 2005 |
| Replies: 2 Views: 1,176 Why can't you program it yourself? |
Forum: Getting Started and Choosing a Distro May 12th, 2005 |
| Replies: 38 Views: 7,547 Don't use an emulator :) Install stage1 gentoo (http://gentoo.org) :) [Moderator's edit] |
Forum: C++ May 12th, 2005 |
| Replies: 9 Views: 1,630 Write out your program out in pseudo-code (how you think its suppose to work) and post it. I can begin to help (and teach) you, then. |
Forum: C++ May 12th, 2005 |
| Replies: 5 Views: 2,868 Maybe I'm not understanding you correctly..
Generated: Thu May 12 16:17:59 2005
[001] for (int i = 0, n = form->ComponentCount; i < n; ++i) {
[002] TComponent *comp =... |
Forum: C++ May 12th, 2005 |
| Replies: 5 Views: 2,868 Can you post code by chance? |
Forum: C++ May 12th, 2005 |
| Replies: 3 Views: 2,955 Are you asking if someone has your homework assignment already completed? |
Forum: C++ May 12th, 2005 |
| Replies: 9 Views: 2,511 Neat I wrote a little C program to format my DaniWeb example code, such that it is formatted in the Kerningham and Ritchie C-style tradition with 8-space tabs and 80 character columns. And to make... |
Forum: C++ May 12th, 2005 |
| Replies: 9 Views: 2,511 #include <fstream>
using namespace std;
int main(int argc, char **argv)
{
ifstream file;
if (argc == 2) {
file.open(argv[1]); |
Forum: C++ May 12th, 2005 |
| Replies: 8 Views: 3,445 I think they're really waiting for you to post back the correct working code ;-) |
Forum: C++ May 12th, 2005 |
| Replies: 6 Views: 7,812 I like KDE, myself. And... if what you mean by "no GOOD media players" is "no media player that can adequately support closed propietary file formats that should have been allowed to exist", you're... |
Forum: C++ May 12th, 2005 |
| Replies: 6 Views: 7,812 Why not program something useful then? |
Forum: C++ May 12th, 2005 |
| Replies: 6 Views: 7,812 KDE already has an mp3 player... http://amarok.kde.org/ |
Forum: C++ May 12th, 2005 |
| Replies: 10 Views: 5,491 Perhaps. You're still young and for most people, including myself, learning takes time and patience. When learning how to program, learning to ask the _right_ questions will yield the most valuable... |
Forum: C++ May 11th, 2005 |
| Replies: 8 Views: 3,445 Maybe you can tell me how one can return (jump) out of this function and then execute:
..
cout << i;
break;
.. |
Forum: C++ May 11th, 2005 |
| Replies: 10 Views: 5,491 I disagree. I think it can seperate a good programmer from an expert programmer no matter what the language or how abstract it is. IMHO an expert programmer not only knows how to use the mechanism,... |
Forum: C++ May 11th, 2005 |
| Replies: 10 Views: 5,491 Oh and please take note of the subtle hint that our dear friend Narue left us: stream input, NOT string input.
It's trully important as a developing programmer to fully understand and... |
Forum: C++ May 11th, 2005 |
| Replies: 6 Views: 9,078 |
Forum: C++ May 11th, 2005 |
| Replies: 10 Views: 5,491 Hello,
I could barely decipher what the heck you were saying. In the future could you please be a bit more articulate. That's the least you could do in return for help.
Now, let's see....... |
Forum: C++ May 10th, 2005 |
| Replies: 2 Views: 1,652 Write MergeSort iteratively and you'll see a performance gain, I bet. |
Forum: C May 10th, 2005 |
| Replies: 13 Views: 2,286 and locality of reference could be poor |
Forum: C May 10th, 2005 |
| Replies: 13 Views: 2,286 I was about to do your homework for you... but 4 frowning smilies, two of which were crying, just wasn't convincing enough... sorry -- Have you asked your teacher for help? Perhaps they have office... |
Forum: IT Professionals' Lounge May 9th, 2005 |
| Replies: 9 Views: 5,005 |
Forum: C++ May 9th, 2005 |
| Replies: 16 Views: 6,203 Sorta. A reference count keeps track of how many "things" are using that object. So, when you go to _remove_ a file in the file system, with say, "rm" you send to the kernel the unlink()... |
Forum: C May 9th, 2005 |
| Replies: 13 Views: 2,286 Oh, I think my way is lovely thank you very much, even though this would have been cleaner :-)
while ((j = fgetc(f)) != EOF) |
Forum: C May 9th, 2005 |
| Replies: 13 Views: 2,286 Nope. I think that is enough help. I showed you exactly the type of loop you needed. Why don't you try looking at the man pages for all the functions you are unfamiliar with. You don't need to be... |
Forum: C May 9th, 2005 |
| Replies: 13 Views: 2,286 tmp.c:
#include <stdio.h>
int main()
{
int err;
int i = 0, j;
FILE *f; |
Forum: C++ May 9th, 2005 |
| Replies: 1 Views: 3,160 This is just a guess...
g++ --static bootsector.cpp -o bootsector
objcopy -O binary bootsector bootsector.bin
then write it to the bootsector of the floppy |
Forum: C++ May 9th, 2005 |
| Replies: 5 Views: 1,785 You don't need a site, you need a suggestion :-) Program C++ in C++ |
Forum: C++ May 9th, 2005 |
| Replies: 13 Views: 3,362 <unconstructive>
haha
</unconstructive> |
Forum: C++ May 9th, 2005 |
| Replies: 16 Views: 6,203 Just create and open a file (which gets a reference to it, and associates it with a new file descriptor), remove the file (drops the reference count by 1), close the file descriptor (drops the... |
Forum: C++ May 9th, 2005 |
| Replies: 13 Views: 3,362 Or talk about you on IRC :) Hah j/k |
Forum: C++ May 9th, 2005 |
| Replies: 16 Views: 6,203 You're trying to emulate failure conditions when no failure condition has occured. Sounds mighty stupid to me. |
Forum: C May 9th, 2005 |
| Replies: 9 Views: 6,882 Blasphemous! May Dennis Ritchie have mercy on your souls. |
Forum: C May 9th, 2005 |
| Replies: 9 Views: 6,882 printf(4) is NOT C++, quit using it. |
Forum: C May 9th, 2005 |
| Replies: 9 Views: 6,882 Have you ever heard of a stack? And what the hell is with void main()? |
Forum: C++ May 8th, 2005 |
| Replies: 16 Views: 6,203 So, if you're writing a program that's specific to a "unix" system why not use C and OS libraries?? And, like I told you, your concept and understanding of "deletion" is wrong. You can't detect... |