Search:

Type: Posts; User: stalker

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: ATD: C++ Sets

    by stalker
    Replies
    9
    Views
    2,340

    is there any online references?

    is there any online references?
  2. Thread: ATD: C++ Sets

    by stalker
    Replies
    9
    Views
    2,340

    where can i get information on stuffs like this ?...

    where can i get information on stuffs like this ? it is not in cppreference, i never see it in books before
  3. Thread: ATD: C++ Sets

    by stalker
    Replies
    9
    Views
    2,340

    so you are saying that first is the iterator part...

    so you are saying that first is the iterator part and second is the boolean part ?
  4. Thread: ATD: C++ Sets

    by stalker
    Replies
    9
    Views
    2,340

    Dont get what you mean by this line ... What is...

    Dont get what you mean by this line ... What is the connection between first or second with boolean ?

    :confused:
  5. Thread: ATD: C++ Sets

    by stalker
    Replies
    9
    Views
    2,340

    ATD: C++ Sets

    i came across a line in a source code:



    set<Item> header;
    set<Item>::iterator itI;

    itI = header.insert(a).first;
  6. Replies
    8
    Views
    1,058

    so it is possible to invoked the constructor with...

    so it is possible to invoked the constructor with creating any object out of its class ? When pass a constructor into the vector, so it is like putting an object into it ? If so, what is the...
  7. Replies
    8
    Views
    1,058

    well, it is not homework. I just come across a...

    well, it is not homework. I just come across a source code on FP Tree and i saw in it that they just invoked the constructor and pass constructor in a method or ADT just like something i mentioned...
  8. Replies
    8
    Views
    1,058

    Constructor help

    Given:-



    class A
    {
    public:
    A() { cout << "A constructed\n"}
    A(int i) : x(i) {}
  9. Replies
    14
    Views
    2,502

    if i want to insert data in a specific location,...

    if i want to insert data in a specific location, then how ?
    for example, if i need to insert data in location array[2][3], how am i suppose to do it ?
  10. Replies
    14
    Views
    2,502

    i mean creating a 2d dynamic array using STL...

    i mean creating a 2d dynamic array using STL vector. can i do something like


    vector<vector<int> >array;

    if the above code make a 2d dynamic array, how i insert data into it ?
  11. Replies
    14
    Views
    2,502

    how about using STL vector to create a 2d dynamic...

    how about using STL vector to create a 2d dynamic array ?

    how to create it and how to assign data or delete data from it ?
  12. Thread: string

    by stalker
    Replies
    6
    Views
    1,153

    string

    if i have a string that contains a puncuation marks. How do i discard that puncuation mark ?

    for example:

    programming.

    how do i make it into:

    programming << exclude the fullstop
  13. Replies
    11
    Views
    1,927

    what does .clear() do ?

    what does .clear() do ?
  14. Replies
    11
    Views
    1,927

    how to i exclude all the symbols such as comma,...

    how to i exclude all the symbols such as comma, fullstop, etc ?
    i just need to save the word only excluding the all the puncuation marks.

    1 more thing, if i want to include the line number and...
  15. Replies
    11
    Views
    1,927

    this is the noindex.txt each word in file2.txt...

    this is the noindex.txt

    each word in file2.txt need to be compare to the noindex.txt. If the word in file2.txt doesn't exists in noindex.txt, then that particular word will be inserts into the...
  16. Replies
    11
    Views
    1,927

    this is the file2.txt.

    this is the file2.txt.
  17. Replies
    11
    Views
    1,927

    after i changed it, the program saves NOTHING....

    after i changed it, the program saves NOTHING. Before i changed it, the program saves EVERYTHING. I am confused why and how it happened. Any solutions or ideas ?
  18. Replies
    3
    Views
    1,727

    void test(int x) { int x; this->x=x; }...

    void test(int x)
    {
    int x;
    this->x=x;
    }


    the above code means ?
  19. Replies
    11
    Views
    1,927

    why cant use .is_good() ? how come when changed...

    why cant use .is_good() ? how come when changed to .good(), no more infinite loop ?

    my program is not running like what i want. The problem now is, the program won't compare the words. Instead,...
  20. Thread: file system

    by stalker
    Replies
    11
    Views
    1,210

    how come ? shouldnt "using namespace std" better...

    how come ? shouldnt "using namespace std" better ? it saves more lines
  21. Replies
    3
    Views
    1,727

    *this and .c_str()

    1st question:
    what does c_str() do ? when should i use and include it ?

    2nd question:
    what does 'this pointer' do ? when should i use and include it ?
  22. Thread: file system

    by stalker
    Replies
    11
    Views
    1,210

    but i did use using namespace std; i...

    but i did use


    using namespace std;

    i thought


    #include <iostream>
    using std::cout;
  23. Replies
    11
    Views
    1,927

    linked list + file system

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

    class LinkedList
    {
    public:

    LinkedList();
  24. Thread: file system

    by stalker
    Replies
    11
    Views
    1,210

    --------------------Configuration: assignment1 -...

    --------------------Configuration: assignment1 - Win32 Debug--------------------
    Compiling...
    assignment1.cpp
    C:\Documents and Settings\genesis\Desktop\assignment1\assignment1.cpp(113) : error...
  25. Thread: file system

    by stalker
    Replies
    11
    Views
    1,210

    file system

    void main()
    {
    ifstream fin_noindex("noindex.txt");
    ifstream fin_f1("file1.txt");

    string s;

    if(fin_noindex.is_open() && fin_f1.is_open())
    {
    while(fin_f1.good())
Results 1 to 25 of 55
Page 1 of 3 1 2 3