Search:

Type: Posts; User: paperbox005

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    957

    really messy code..sorry int main(int...

    really messy code..sorry



    int main(int argc, char *argv[])
    {
    FILE *input;
    int N, K, x, pos=4, b, s, r=0, q=0;
    int unequal=0, f=6, g, y=0, m, t;
    int **array=NULL, *bleh,...
  2. Replies
    4
    Views
    957

    yep bleh is set up somehwere else, the weird...

    yep bleh is set up somehwere else, the weird thing that is happening is that when i complete this bit of code


    for(;column<=5;column++) //second for loop
    {
    ...
  3. Replies
    4
    Views
    957

    very weird error with a variable

    heres a snippet of some of my code, but im getting a problem with the arrays that i've created..

    whats going on is that i have a 2d array, and a 1d array
    and say my 1d array has
    2.
    2.
    3.
    2....
  4. Replies
    3
    Views
    6,928

    is it because my variable is too small ?

    is it because my variable is too small ?
  5. Replies
    3
    Views
    6,928

    integral constant overflow error?

    int main()
    {
    double big_number;
    big_number = (1/61601) * sqrt((61602*61599)/61603);
    printf("%f",big_number);
    }



    i get the error
  6. Replies
    4
    Views
    1,250

    awe3some thanks! im not too sure how that...

    awe3some thanks!

    im not too sure how that works, but it does.
  7. Replies
    4
    Views
    1,250

    sscanf replacing chars

    does anyone know how i can use sscanf to replace characters in a string?


    say i have string

    abcd

    and i want to replace a and d with a space, how coul di do that?
  8. Replies
    4
    Views
    1,255

    lvalue error

    i fi have

    #define X 0x02

    and i want to change X in my program, how woul di do this?
    is it possible to change X to say number 3 ?

    im getting error with lvalue..

    ??
  9. Replies
    3
    Views
    857

    memory and structs..

    if i have a header fiel containing hte following..



    #define TERMINAL_1 0x01
    #define TERMINAL_2 0x02


    typedef struct data {
    int cookie;
  10. Replies
    3
    Views
    886

    fseek and storing ints

    how would you seek to a particular spot in a file and read an int?

    if i have a file full of ints
    50 51 9

    how do i read each of these ints using fseek?


    int i = 0;
    int temp_Var;
  11. Replies
    1
    Views
    826

    recusion in trees

    im trying to implement a calculator
    but the trouble im having is when i have two negative signs should be positive.

    so if i have a tree like


    -
    / \
    -
    / \
  12. Replies
    2
    Views
    863

    seg fault somewhere cannot find

    i have


    <<<FILE1.CPP>>>
    #include <string>
    #include "Customer.h"
    using namespace std;

    //in a functino somewhere
  13. Replies
    3
    Views
    702

    OMG you have got to be joking, that WAS the...

    OMG you have got to be joking, that WAS the error!!!
    geeeeeezus! how long did i spend on this shnizzle just for that crappy eerror!
    thanks mate
  14. Replies
    3
    Views
    702

    error with functions

    hey, if you could just check out my code, i've spent soo long on it already, and i cant seem to figure out WHY this doesnt work when the code for the functions is pretty simliar!
    all im doing is...
  15. Replies
    6
    Views
    1,082

    i've tried using the cin.ignore but i get this...

    i've tried using the cin.ignore
    but i get this error


    error: `ignore' undeclared (first use this function)

    ??
    i've included the header file <iostream>
    do i need to include any otheres?
  16. Replies
    6
    Views
    1,082

    thanks elad!

    thanks elad!
  17. well postfix expression means that the operators...

    well postfix expression means that the operators come after the variables
    and prefix means that hte operators come before the variables
    so
    ABC +* D - would be postfix
    infix = ((A+B)*C)-D
    you...
  18. Replies
    4
    Views
    1,085

    you'll need to paste some of your code where you...

    you'll need to paste some of your code where you think it is seg-faulting..
  19. Replies
    6
    Views
    1,082

    mmm? that while loop is trying to read in these...

    mmm?
    that while loop is trying to read in these 5 numbers
    1 0 0 0 0
  20. Replies
    6
    Views
    1,082

    read from file problems

    hello
    im trying to read data from a file
    the file appears like


    1
    Dog
    Tim
    Male 4 4.7 5
    0 0 0 0 0
  21. thanks

    thanks
  22. error with 2 header files calling each other

    i get error when i compile..
    here is my code


    /*this is my header file for my file called C.h*/
    #ifndef _C_H_
    #define _C_H_
    #include "I.h"
    using namespace std;
    class C {
  23. Replies
    8
    Views
    1,067

    well i would think i would need the for loop...

    well i would think i would need the for loop since i want to print out all the nodes in my list. even tho now it only has one, later on i do wish to insert more.
  24. Replies
    8
    Views
    1,067

    ok this stopped the printing of address's, it is...

    ok this stopped the printing of address's,
    it is still printing an extra copy ..like so


    One: eeny
    Two: meeny
    Three: miny

    One:
    Two: meeny
  25. Replies
    8
    Views
    1,067

    this did not work

    this did not work
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4