Search:

Type: Posts; User: acidbeat311

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    5,544

    Decimal to Binary Conversion program

    Hello, I wrote this program for my Intro to Digital Systems class to convert a base 10 number into a Binary base 2 number string. It works perfectly except for some numbers it slams a number in front...
  2. Thread: timeing

    by acidbeat311
    Replies
    1
    Views
    1,059

    timeing

    I'm outputting text to an lcd. I want the text to scroll every .5 seconds. I can easily do this every second. I made this test program ...


    #include <stdio.h>
    #include <time.h>

    int main()
    {...
  3. Replies
    4
    Views
    1,139

    I am having a hard time understanding how to get...

    I am having a hard time understanding how to get the output i want.

    I want to say this...



    temp_var = strchr(string, "=");

    however what do I declare temp_var as? and how would I print...
  4. Replies
    4
    Views
    1,139

    simple string editing

    I would like to know how to print characters after ')' has been read... I need this to extract the data from a file that contains 100's of .pls files which are used for connecting to web streams,...
  5. Replies
    3
    Views
    946

    yes, i've read the man file. What I want to do is...

    yes, i've read the man file. What I want to do is say do this until '\n' is reached. But i get an error whenever I do this. The example i posted sort of works, however the output looks more like...
  6. Replies
    3
    Views
    946

    multiDimensional array

    I need help with a multidimensional array that gets its data from a file. I want to say....Do this until end of line is reached, then go to the next line to fill the next row of data.



    int i;
    ...
  7. linux opening a program from within a C file

    I'm creating an internet radio device that has an LCD interface with a keypad. I want to load MPLAYER when I push a button to open a stream. How can I launch mplayer from within in the c file?
  8. Replies
    4
    Views
    1,402

    I should have been a bit more specific. What I am...

    I should have been a bit more specific. What I am after is the IP you are assigned by a central server. My setup is that computer 1 assigns me an IP. I want to find that IP and the current IP given...
  9. Replies
    4
    Views
    1,402

    Finding IP adress

    I'm a linux user and would like to create a basic program that outputs the local and internet IP that is currently in use by the machine. Does anyone know where I might obtain these 2 things from the...
  10. Replies
    2
    Views
    1,381

    first we'd need to know what compiler you are...

    first we'd need to know what compiler you are using. I don't believe there is a built in c compiler in windows.
  11. Replies
    5
    Views
    1,264

    However, this may be quite confusing if you...

    However, this may be quite confusing if you haven't even touched arrays yet. It took me forever to understand this stuff. there is also another command you might want to check out called toupper()....
  12. Replies
    5
    Views
    1,264

    There is one thing that can really minimize the...

    There is one thing that can really minimize the work. Letters can be converted to numbers. So if you have 'A' - 'A' you have then number 0. So my suggestion would be to fill the array like this...
    ...
  13. Replies
    16
    Views
    8,217

    i forgot to add that toupper is part of the...

    i forgot to add that toupper is part of the ctype.h library.
  14. Replies
    16
    Views
    8,217

    I'm not 100% sure on this. but wouldn't you also...

    I'm not 100% sure on this. but wouldn't you also need the toupper() command to make sure that the input is made uppercase. I would give this a try at the end.


    toupper(answer);
  15. terms in c

    in my c class the professor uses the terms call by reference and call by value. I can not find these in the book. could anyone explain this to me?
  16. oh my. today is not my dad. i printed to the...

    oh my. today is not my dad. i printed to the input file.
  17. Dude, you guys rock. I still can't believe i made...

    Dude, you guys rock. I still can't believe i made that small error with the &. Now i have one problem it opens, it reads, but the printing does not work.


    #include <stdio.h>
    #include <string.h>...
  18. problems with opening a file from a string

    I am using linux and i'm haveing a problem with this code. It doesn't even seem to open the file. I also tried useing the gets function but GCC warns me that gets() is dangerous and should not be...
  19. Thread: Chart!

    by acidbeat311
    Replies
    13
    Views
    2,923

    yea, I'm very sorry. I read that on the homework...

    yea, I'm very sorry. I read that on the homework for the messages. I was just too excited that i knew how to do it. next time i will be more careful. If an admin would like to take down that last...
  20. Thread: Chart!

    by acidbeat311
    Replies
    13
    Views
    2,923

    I just handed in an assignment like this last...

    I just handed in an assignment like this last week for my programming in c class. It's just a simple histogram.


    void histogram(double input[],double range, double max, double min,char fname[],...
  21. Replies
    2
    Views
    1,263

    need help with homework code

    If someone could help me with this code I would be very greatful.
    I need to get the depth value out of the main function so i can use it in the function celcius_at_depth. and then how would i get...
Results 1 to 21 of 22