Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: qkslvrwolf
  • Content: Threads
  • Order by date
  1. qkslvrwolf

    Strange scoping issues

    I'm having a weird scoping issue where I add a new instantiation of a class (edge) to a Vector (edges). However, no matter how many layers of newness I add to the edge that I add, it creates a pointer to the same object...so I get a Vector with a bunch of copies of the last object that I add...
  2. qkslvrwolf

    Random float generation

    Hi, I'm trying to generate some random floats, preferablly with a fairly involved post decimal presence, if you take my meaning. Currently, I've tried this...#include <stdlib.h> #include <time.h> int main() { float check; int i; srand((unsigned )time( NULL )); for (i = 0; i < 20...
  3. qkslvrwolf

    diff usage

    yeah, so can someone give me a more down to earth explanation of diff? I'm trying to compare 2 files of aournd 5000+ lines lenght, which should (I hope) be similar if not identical. I do not understand diff, however, and man pages are...poorly written. Thanks!
  4. qkslvrwolf

    compile error with strtof

    For some reason, this #include <stdlib.h> int string2float(char *word) { float ret; ret = 0; ret = strtof(word, NULL); return ret; } gives me an &quot;unidentified reference to strtof&quot; at the line of ret = strtof(word, NULL); Which really confuses me, because elsewhere in this...
  5. qkslvrwolf

    how to convert float to binary

    Ok, this one is a little bit over my head...I've had it explained by my prof, but am still a little fuzzy. Can anyone give me an algorithm for this? Preferably with a non-code explanation?
  6. qkslvrwolf

    A certain annoying warning that crops up seemingly at random

    When I try to compile a program, I get the following warning message set: functions.c:64: warning: type mismatch with previous implicit declaration functions.c:16: warning: previous implicit declaration of `getWord' functions.c:64: warning: `getWord' was previously implicitly declared to return...
  7. qkslvrwolf

    Int to binary converstin issues

    I'm trying to convert an int into a binary string of a given length. here is my function... // converts an integer to a binary. Destination string *must be empty*. void int2binary(char binary [100], int convertee) { int foo; char ret; int i = 0; printf(&quot;%i\n&quot...
  8. qkslvrwolf

    string to int conversion

    Is there a fast, easy way to do string to int conversion in C? (C is driving me slowly insane, by the way). Thanks! sean

Part and Inventory Search

Back
Top