Search Results

Showing results 1 to 26 of 26
Search took 0.00 seconds.
Search: Posts Made By: subtronic ; Forum: C and child forums
Forum: C May 13th, 2005
Replies: 8
Views: 5,009
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: 5,009
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: 5,009
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,190
Posted By subtronic
Why can't you program it yourself?
Forum: C May 10th, 2005
Replies: 13
Views: 2,327
Posted By subtronic
and locality of reference could be poor
Forum: C May 10th, 2005
Replies: 13
Views: 2,327
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: C May 9th, 2005
Replies: 13
Views: 2,327
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,327
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,327
Posted By subtronic
tmp.c:

#include <stdio.h>

int main()
{
int err;
int i = 0, j;
FILE *f;
Forum: C May 9th, 2005
Replies: 9
Views: 7,094
Posted By subtronic
Blasphemous! May Dennis Ritchie have mercy on your souls.
Forum: C May 9th, 2005
Replies: 9
Views: 7,094
Posted By subtronic
printf(4) is NOT C++, quit using it.
Forum: C May 9th, 2005
Replies: 9
Views: 7,094
Posted By subtronic
Have you ever heard of a stack? And what the hell is with void main()?
Forum: C May 8th, 2005
Replies: 9
Views: 10,737
Posted By subtronic
Here's a tip: First figure out the algorithm, then figure out the data structure.
Forum: C May 8th, 2005
Replies: 9
Views: 10,737
Posted By subtronic
Which translates into, "Please do my homework for me"
Forum: C May 8th, 2005
Replies: 9
Views: 10,737
Posted By subtronic
The correct acronym is FIFO (First-in, First-out). It's important when working with data structures and algorithms to use the correct terminology. Even though I was able to infer what you meant, a...
Forum: C Oct 17th, 2004
Replies: 12
Views: 8,537
Posted By subtronic
Also, it's good to input different values of N (a scale of values from low to high) to prove the running time is correct. The improvement would be be seen over a log / N graph. You should also do...
Forum: C Oct 17th, 2004
Replies: 12
Views: 8,537
Posted By subtronic
Forum: C Oct 16th, 2004
Replies: 12
Views: 8,537
Posted By subtronic
One interesting way to figure out optimizations is through experimentation. You can time each pass for each implementation, record results and then plot them side by side on a graph. You can make...
Forum: C Oct 15th, 2004
Replies: 12
Views: 8,537
Posted By subtronic
I'd love to help but could you please be more informative? What do you mean by "I can't get anything to work"? How many passes of quicksort do you do before you do insertion sort?


data := "5 2...
Forum: C Oct 10th, 2003
Replies: 5
Views: 25,551
Posted By subtronic
Why not use fgetc? I don't really use C++ constructs, so in C it would be (and I'm just writing this on the fly so expect some errors):

#include <stdio.h>
#include <stdlib.h>

int main() {
...
Forum: C Oct 7th, 2003
Replies: 3
Views: 5,409
Posted By subtronic
post code so I can help you:)
Forum: C Oct 6th, 2003
Replies: 7
Views: 8,410
Posted By subtronic
In all honesty, I'm using C++ with C too right now because I'm writing a binary file reader to read and load Lightwave objects into a C++ class/object representation (so I can start using my...
Forum: C Sep 16th, 2003
Replies: 7
Views: 8,410
Posted By subtronic
You're using C++ but you are using the std:string? #include <string>

If you want to do strings C-style which is a pointer to an array of chars like you have you first want to malloc() and then...
Forum: C Aug 28th, 2003
Replies: 3
Views: 3,508
Posted By subtronic
Want not just use a database to store the information??
Forum: C Aug 24th, 2003
Replies: 4
Views: 4,517
Posted By subtronic
I'm sorry, at a closer look you are using Windows...I thought you were actually using C on a Unix System. I'm not sure how you'd do it with the Win32 API, I'd imagine it is quite similar.
Forum: C Aug 23rd, 2003
Replies: 4
Views: 4,517
Posted By subtronic
system actually starts a new process, does what you want, then closes that process. in fact, if you really think about it, what does it mean to "change directory"; "change directory" or cd is a...
Showing results 1 to 26 of 26

 


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

©2003 - 2009 DaniWeb® LLC