Search:

Type: Posts; User: johndoeisabro

Search: Search took 0.01 seconds.

  1. remove whitespace program won't work

    The program is supposed to erase all whitespace and all chars past the whitespace from a string, but it just hangs the terminal.


    #include<iostream>
    #include<string>
    #include<string.h>...
  2. Replies
    3
    Views
    181

    Thx it works now;) author made a typo

    Thx it works now;)
    author made a typo
  3. Replies
    3
    Views
    181

    Weird copy assignment code

    vector& operator=(const vector& a){
    double *p=new double[a.sz];
    copy(a.elem, a.elem+a.sz, elem);
    delete[] elem;
    elem=p;
    sz=a.sz;
    return *this;
    ...
  4. Thx it works ;)

    Thx it works ;)
  5. My program wont put lines into a vector

    I'm trying to make a program that puts the lines in a file into a vector. For some reason its only putting the first line into the vector:


    #include<iostream>
    #include<string>
    #include<vector>...
Results 1 to 5 of 5