Search Results

Showing results 1 to 40 of 117
Search took 0.02 seconds.
Search: Posts Made By: subtronic
Forum: Computer Science May 13th, 2005
Replies: 4
Views: 2,777
Posted By subtronic
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,884
Posted By subtronic
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,884
Posted By subtronic
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,884
Posted By subtronic
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,180
Posted By subtronic
Why can't you program it yourself?
Forum: Getting Started and Choosing a Distro May 12th, 2005
Replies: 38
Views: 7,578
Posted By subtronic
Don't use an emulator :) Install stage1 gentoo (http://gentoo.org) :) [Moderator's edit]
Forum: C++ May 12th, 2005
Replies: 9
Views: 1,633
Posted By subtronic
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,886
Posted By subtronic
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,886
Posted By subtronic
Forum: C++ May 12th, 2005
Replies: 3
Views: 2,986
Posted By subtronic
Are you asking if someone has your homework assignment already completed?
Forum: C++ May 12th, 2005
Replies: 9
Views: 2,522
Posted By subtronic
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,522
Posted By subtronic
#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,452
Posted By subtronic
I think they're really waiting for you to post back the correct working code ;-)
Forum: C++ May 12th, 2005
Replies: 6
Views: 7,890
Posted By subtronic
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,890
Posted By subtronic
Why not program something useful then?
Forum: C++ May 12th, 2005
Replies: 6
Views: 7,890
Posted By subtronic
KDE already has an mp3 player... http://amarok.kde.org/
Forum: C++ May 12th, 2005
Replies: 10
Views: 5,532
Posted By subtronic
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,452
Posted By subtronic
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,532
Posted By subtronic
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,532
Posted By subtronic
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,255
Posted By subtronic
Forum: C++ May 11th, 2005
Replies: 10
Views: 5,532
Posted By subtronic
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,666
Posted By subtronic
Write MergeSort iteratively and you'll see a performance gain, I bet.
Forum: C May 10th, 2005
Replies: 13
Views: 2,294
Posted By subtronic
and locality of reference could be poor
Forum: C May 10th, 2005
Replies: 13
Views: 2,294
Posted By subtronic
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,017
Posted By subtronic
Forum: C++ May 9th, 2005
Replies: 16
Views: 6,249
Posted By subtronic
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,294
Posted By subtronic
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,294
Posted By subtronic
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,294
Posted By subtronic
tmp.c:

#include <stdio.h>

int main()
{
int err;
int i = 0, j;
FILE *f;
Forum: C++ May 9th, 2005
Replies: 1
Views: 3,190
Posted By subtronic
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,796
Posted By subtronic
You don't need a site, you need a suggestion :-) Program C++ in C++
Forum: C++ May 9th, 2005
Replies: 13
Views: 3,377
Posted By subtronic
<unconstructive>
haha
</unconstructive>
Forum: C++ May 9th, 2005
Replies: 16
Views: 6,249
Posted By subtronic
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,377
Posted By subtronic
Or talk about you on IRC :) Hah j/k
Forum: C++ May 9th, 2005
Replies: 16
Views: 6,249
Posted By subtronic
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,958
Posted By subtronic
Blasphemous! May Dennis Ritchie have mercy on your souls.
Forum: C May 9th, 2005
Replies: 9
Views: 6,958
Posted By subtronic
printf(4) is NOT C++, quit using it.
Forum: C May 9th, 2005
Replies: 9
Views: 6,958
Posted By subtronic
Have you ever heard of a stack? And what the hell is with void main()?
Forum: C++ May 8th, 2005
Replies: 16
Views: 6,249
Posted By subtronic
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...
Showing results 1 to 40 of 117

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC