Search:

Type: Posts; User: vege^

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,122

    still stumped. #include char...

    still stumped.

    #include <time.h>
    char *asctime( const struct tm *ptr );

    trying to use that but dont know how ;/
    help please :confused:
  2. Replies
    8
    Views
    1,122

    agh i tried both - no avail ;/ how do you...

    agh i tried both - no avail ;/
    how do you manipulate the ones in time.h for them to return the date to you? i tried a couple things, got it to compile but then nothing happened :/

    the boost.org...
  3. Replies
    8
    Views
    1,122

    yeah i have a class which calculates the timer...

    yeah i have a class which calculates the timer for the game, what i needed was something to get the date ;/

    gonna go try those that you gave me, thanks guys : ]
  4. Replies
    8
    Views
    1,122

    algorithm/function that returns date?

    i've asked around and looked (peeked) in the standard library files but haven't found anything that returns the time to a program. I need this for a game of minesweeper im writing, for which i need...
  5. Thread: scrolling text..

    by vege^
    Replies
    1
    Views
    1,103

    scrolling text..

    ok ive tried a couple things but to no avail.
    my problem is, i wanna be able to input a string and make the program scroll it from left to right on the screen, in a defined length (for if i only...
  6. Replies
    3
    Views
    1,019

    ty ty will try it when i get home ;D

    ty ty will try it when i get home ;D
  7. Replies
    3
    Views
    1,019

    stream command....

    hi, my question is really simple. Im working with streams and i dont know the "end of file" command for c++ (i dont even know if there is such a thing) any help would be appreciated ;D

    oh and...
  8. Thread: visual studio

    by vege^
    Replies
    3
    Views
    855

    :eek: thx :D

    :eek: thx :D
  9. Replies
    0
    Views
    2,289

    Obned 2: Inimical Mavens

    Hi, I'm new to this board but Id like to share a Quake3 vid i made last week with you guys :)

    http://www.xsn.net/obsoleet/files/inimical_mavens.avi

    It's 137MB but it's 10:26 long. I hope you...
  10. Thread: visual studio

    by vege^
    Replies
    3
    Views
    855

    visual studio

    need help for when creating a C++ file. Ive done some programs before, but now i need to use the iostream and string #include's without the .h

    thing is, it doesnt accept it when I use
    #include...
  11. Thread: counters..omg :S

    by vege^
    Replies
    1
    Views
    933

    ok nevermind, fixed it :) i knew it had to be...

    ok nevermind, fixed it :)
    i knew it had to be something stupid, i just initialized the counter to 0 after the cout :D

    WOOT me so happy - proyect is done :D D:D :D: D:D:D

    thx to all 8)
  12. Thread: local variables

    by vege^
    Replies
    14
    Views
    2,104

    so you want the proggy to output every value in...

    so you want the proggy to output every value in the array or what? for that i suggest doing


    int array[5];
    for (int i=0;i<5;i++)
    cout << w[i];


    hope i helped some
  13. Thread: counters..omg :S

    by vege^
    Replies
    1
    Views
    933

    counters..omg :S

    check this piece of code out:


    for(int u=1;u<=5;u++){
    inta=(a+(u-1)*f);
    intb=a+u*f;

    for(int r=0;r<n;r++)
    if(w[r]>=inta && w[r]<=intb)
    count++;
  14. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    yeah i kinda realized it just now :/ this is...

    yeah i kinda realized it just now :/

    this is what i did



    f=floor(d*100)/100.0;


    soz, but thx :)
  15. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    i am teh dumb :/ if i have: ...

    i am teh dumb :/

    if i have:


    a=minValue(w,n)-.01;
    b=maxValue(w,n)+.01;
    d=(b-a)/5;

    how then would i round d to 2 decimal places using what you gave me? sorry im bothering so much :/
  16. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    the round function im looking for rounds a number...

    the round function im looking for rounds a number to 2 decimal places
    the professor gave us this example:


    round(x*100)/100
    but when i try to make a function like this


    int round(int x){
    ...
  17. Thread: sorting arrays..

    by vege^
    Replies
    3
    Views
    1,237

    ah thx it worked :D :D you helped 8)

    ah thx it worked :D :D
    you helped 8)
  18. Thread: sorting arrays..

    by vege^
    Replies
    3
    Views
    1,237

    in the declaration (before main) or in the...

    in the declaration (before main) or in the function itself?
  19. Thread: sorting arrays..

    by vege^
    Replies
    3
    Views
    1,237

    sorting arrays..

    yeah, im kinda stuck again ;/ need to sort an array in increasing order, and this is what i got so far (functions to sort arrays):



    void swap(int x, int y){
    int t;
    t=x;
    x=y;
    y=t;
    }
  20. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    oh i almost forgot: where's the round() function...

    oh i almost forgot: where's the round() function :(

    i mean, what #include do i have to do in order to use it :/
  21. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    #include #include ...

    #include <iostream.h>
    #include <math.h>



    int main() {

    int n, *w;
  22. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    yeah i took it out to show the code: i didnt want...

    yeah i took it out to show the code: i didnt want peeps to mock me for my n00b skillz ;/
  23. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    whoa you helped :D

    whoa
    you helped :D
  24. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    using MS Visual c++ this is what i got so far: ...

    using MS Visual c++
    this is what i got so far:


    #include <iostream.h>
    #include <math.h>



    int main() {
  25. Thread: round() function

    by vege^
    Replies
    17
    Views
    3,923

    while you're at it ( :) ) how can i, for...

    while you're at it ( :) )
    how can i, for example, define an array with an user-defined size?

    as in, i need a proggy in which the user inputs the number of "digits" in the array, and then defines...
Results 1 to 25 of 28
Page 1 of 2 1 2