is there any online references?
Type: Posts; User: stalker
is there any online references?
where can i get information on stuffs like this ? it is not in cppreference, i never see it in books before
so you are saying that first is the iterator part and second is the boolean part ?
Dont get what you mean by this line ... What is the connection between first or second with boolean ?
:confused:
i came across a line in a source code:
set<Item> header;
set<Item>::iterator itI;
itI = header.insert(a).first;
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...
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...
Given:-
class A
{
public:
A() { cout << "A constructed\n"}
A(int i) : x(i) {}
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 ?
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 ?
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 ?
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
what does .clear() do ?
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...
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...
this is the file2.txt.
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 ?
void test(int x)
{
int x;
this->x=x;
}
the above code means ?
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,...
how come ? shouldnt "using namespace std" better ? it saves more lines
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 ?
but i did use
using namespace std;
i thought
#include <iostream>
using std::cout;
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
class LinkedList
{
public:
LinkedList();
--------------------Configuration: assignment1 - Win32 Debug--------------------
Compiling...
assignment1.cpp
C:\Documents and Settings\genesis\Desktop\assignment1\assignment1.cpp(113) : error...
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())