CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dietao234

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    550

    Bunch of errors.

    Whats wrong with this code:

    #include <iostream>
    #include <fstream>
    #include <string>
    #include <algorithm>
    #include <vector>
    using namespace std;

    struct rec {
  2. Replies
    4
    Views
    19,063

    Hashset equilalent of C++

    What is the equivalent of HashSet in C++? How do I use it (as in basic add, remove, and iterating through)
  3. Replies
    6
    Views
    709

    Re: String in c++

    Is it possible to increase the max size of a string?
  4. Replies
    6
    Views
    709

    String in c++

    I was storing a lot of things into my string, and it seems to have run out of memory. I have thought about using a array/vector of characters, however, I wish to retain the ability to do substring,...
  5. Thread: Substring

    by dietao234
    Replies
    2
    Views
    456

    Substring

    How does substr() in the string class work?? Does it copy over each character linearly?

    Thanks in advance
  6. Replies
    2
    Views
    575

    Timing a program

    I have found that often I am asking which way of solving problems are faster. Thus I will ask how to time a program here so that I can test the runspeed myself. In Java I know you can use

    long...
  7. Replies
    5
    Views
    531

    Re: Increment Operators

    Thank you very much
  8. Replies
    5
    Views
    531

    Re: Increment Operators

    What would the difference be if i was an iterator or a pointer? Would it advance the iterator/pointer first, then go through the for loop if it was prefix form?
  9. Replies
    5
    Views
    531

    Increment Operators

    I have heard that ++i and i++ are different from each other. I am aware that if I do something like:

    int i = 0;
    int k = i++;

    then k is 0, and if I do

    int i = 0;
    int k = ++i;
  10. Thread: Lists

    by dietao234
    Replies
    3
    Views
    499

    Lists

    Are iterators the only way to get data from a list? Can I use list[1]??

    Thanks in advance.
  11. Thread: Efficiency

    by dietao234
    Replies
    10
    Views
    5,390

    Re: Efficiency

    Thank you very much.
  12. Thread: Efficiency

    by dietao234
    Replies
    10
    Views
    5,390

    Re: Efficiency

    How do you time in C++? I have only done it in Java.

    Thanks in advance
  13. Thread: Efficiency

    by dietao234
    Replies
    10
    Views
    5,390

    Efficiency

    I know I can iterate through a vector using:

    for(vector::size_type i = 0; i < vec.size(); i++){
    cout << vec[i];
    }
    (vec is the name of the vector)

    I also know that I can use an iterator...
Results 1 to 13 of 13


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)