Search:

Type: Posts; User: Barnzey

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    12,875

    http://cplusplus.com/ref/cstdio/printf.html ...

    http://cplusplus.com/ref/cstdio/printf.html

    precision:
  2. Thread: Puzzle!!!

    by Barnzey
    Replies
    14
    Views
    3,657

    Nice one :P

    Nice one :P
  3. Thread: Puzzle!!!

    by Barnzey
    Replies
    14
    Views
    3,657

    Puzzle!!!

    Hi all got a puzzle for you!

    Find the next two lines of the following sequence:

    11
    21
    12-11
    11-12-21
    31-22-11
    13-11-22-21
  4. Replies
    4
    Views
    1,363

    Well, char ADD; isnt actually making a string...

    Well,

    char ADD; isnt actually making a string a containing the word ADD, it simply creates a variable called ADD.

    Also A[3] is the 4th element in A, i.e if A was "hello", A[3] would be l (the...
  5. Replies
    22
    Views
    3,836

    Why dont you just show us what you've got and ask...

    Why dont you just show us what you've got and ask us for help??
  6. Replies
    11
    Views
    1,133

    http://computer.howstuffworks.com/c.htm

    http://computer.howstuffworks.com/c.htm
  7. Replies
    11
    Views
    1,133

    Worked fine for me...

    Worked fine for me...
  8. Thread: customer input

    by Barnzey
    Replies
    6
    Views
    2,540

    Is this your site? ...

    Is this your site?

    http://www.angelfire.com/linux/willc0de4food/programs/basicinput.c
  9. Thread: factorial usus

    by Barnzey
    Replies
    4
    Views
    1,050

    Just incase anyone didnt know, mine isnt red text...

    Just incase anyone didnt know, mine isnt red text its a link
  10. Thread: factorial usus

    by Barnzey
    Replies
    4
    Views
    1,050

    Google for "What are factorials used for"...

    Google for "What are factorials used for"
  11. Well if its any help it simplifies to: ...

    Well if its any help

    it simplifies to:

    cos(kL/2) = k/b

    half angle formulae?
  12. Replies
    11
    Views
    5,392

    my bad, forgot that was a C++ source code. I've...

    my bad, forgot that was a C++ source code. I've got a C version but its not on the PC, would mean typing it up. If i get time ill post it.

    Do you mean having somthing like:

    a = 5
    b = 6
    a+b =...
  13. Replies
    11
    Views
    5,392

    // GENERIC PARSER #include ...

    // GENERIC PARSER

    #include <iostream>
    #include <cstdlib>
    #include <cctype>
    #include <cstring>

    using namespace std;

    enum types { DELIMITER = 1, VARIABLE, NUMBER};
  14. scanf("%s %s", variables); but then you need...

    scanf("%s %s", variables);

    but then you need to know how many words there are going to be.

    use

    gets, or fgets
  15. Replies
    7
    Views
    3,811

    Or you can use strncpy, ...

    Or you can use strncpy,


    strncpy(name,filename,(strlen(filename)-4));

    Or

    strtok:
  16. Thread: c help arrays

    by Barnzey
    Replies
    7
    Views
    1,375

    So want every part of the array to be sumed with...

    So want every part of the array to be sumed with all the other parts, if not can you say it again, i didnt really understand.
  17. Replies
    11
    Views
    5,457

    I dont know if you can use: _getch() and...

    I dont know if you can use:

    _getch() and _putch();

    But look into them.
  18. Replies
    4
    Views
    2,677

    If you want to learn object oriented C i found a...

    If you want to learn object oriented C i found a pdf:

    http://www.planetpdf.com/codecuts/pdfs/ooc.pdf
  19. Thread: Math stumper

    by Barnzey
    Replies
    8
    Views
    1,454

    I can tell you how to check if 2 lines are...

    I can tell you how to check if 2 lines are perpendicular:

    If line 1 is a, and line 2 is b then to check you need to know the eqn:

    a.b =|a||b|cos(theta)

    where theta is the angle between them,...
  20. Replies
    11
    Views
    1,934

    That level of C isnt hard, he has simply added...

    That level of C isnt hard, he has simply added error checking by checking to see wether or not an input has been received. And the:


    ((input % 2) == 0) ? "" : "not ")

    Is basicaly an if...
  21. Replies
    35
    Views
    4,505

    Sorry for interupting this nice little argument,...

    Sorry for interupting this nice little argument, but did you fix your program?
  22. Thread: Parser Help

    by Barnzey
    Replies
    10
    Views
    2,401

    Hey thanks alot :) I already changed the...

    Hey thanks alot :)

    I already changed the NUMBER bit, it was the return's that were wrong.

    thanks again for your help!
  23. Replies
    35
    Views
    4,505

    l == "b" ?? Would help if we could see the...

    l == "b" ??

    Would help if we could see the whole code.
  24. Replies
    7
    Views
    1,366

    Can you not try using a for(;;) loop, then start...

    Can you not try using a for(;;) loop, then start with a getkey function, then have a switch statement...
  25. Replies
    35
    Views
    4,505

    stdin is from the command line.

    stdin is from the command line.
Results 1 to 25 of 38
Page 1 of 2 1 2