Search Results

Showing results 1 to 40 of 40
Search took 0.01 seconds.
Search: Posts Made By: localp ; Forum: C++ and child forums
Forum: C++ May 5th, 2009
Replies: 9
Views: 356
Posted By localp
Forum: C++ May 5th, 2009
Replies: 9
Views: 356
Posted By localp
Thank You so very much ... this helps a lot. i was about to quit :X programming .. thanks for your post :idea:
Forum: C++ May 5th, 2009
Replies: 9
Views: 356
Posted By localp
ya links does not help. i have coded for insert before, insert after, insert at rear. the only problem i have is insert in between 2 values ... ya sure i'll give up programming and do some thing...
Forum: C++ May 5th, 2009
Replies: 9
Views: 356
Posted By localp
Still Couldn't get the logic right :(
Forum: C++ May 5th, 2009
Replies: 9
Views: 356
Posted By localp
i need to know the code for insert in middle, and this is what i wrote, i dont get any errors so theres some logic error in it, so please help me by giving me the correct code.


void...
Forum: C++ Nov 13th, 2008
Replies: 7
Views: 1,448
Posted By localp
is there a STL function where we can find if an index is already present in the list, and returns true or false, based on the result .
Forum: C++ Nov 13th, 2008
Replies: 7
Views: 1,448
Posted By localp
ok so , just imagine i entered the word flower, and its hash value is 5, and i go and insert in as follows ::::
push_front(num);//num is the value of the flower

so how am i going to store the...
Forum: C++ Nov 13th, 2008
Replies: 7
Views: 1,448
Posted By localp
it is a string that i am planning to enter, so how am i going to generate the index of the word, and how to do the hashing and rehashing, are there any predifined functions for thses. ?
Forum: C++ Nov 13th, 2008
Replies: 7
Views: 1,448
Posted By localp
i want to create a hash table ( independent rehashing ), using STL LIST...

in Independent rehashing we use a function to

we need to generate the index
then check if there is any collisions
if...
Forum: C++ Nov 10th, 2008
Replies: 9
Views: 869
Posted By localp
IS WIDTH (cin.width(sizeof v.c);) A FUNCTION DEFINED BY THE LANGUAGE ?
Forum: C++ Nov 10th, 2008
Replies: 6
Views: 845
Posted By localp
when i do it your way i get 56 errors ....
Forum: C++ Nov 10th, 2008
Replies: 6
Views: 845
Posted By localp
this is the error
: error C2639: compiler generated default constructor required by unnamed class
Forum: C++ Nov 10th, 2008
Replies: 9
Views: 869
Posted By localp
but how do u return a char array .. is all my other codes okk ...
Forum: C++ Nov 10th, 2008
Replies: 6
Views: 845
Posted By localp
struct entry
{
int key;

} entry[TABLE_SIZE];


i declared a struc like this... but i no that u cant declare it in this way, if i write it in the correct way i am getting errors. Y is...
Forum: C++ Nov 10th, 2008
Replies: 9
Views: 869
Posted By localp
return (str[29]);
but no use still errors
Forum: C++ Nov 10th, 2008
Replies: 9
Views: 869
Posted By localp
i changed it, but it doesn't work
Forum: C++ Nov 10th, 2008
Replies: 9
Views: 869
Posted By localp
struct value
{
char c[29];

};

char toLower(char na)
{
char c;
char str[29];
Forum: C++ Nov 5th, 2008
Replies: 1
Views: 358
Posted By localp
i want to write a line of code that could extract a text ending with the character " - "

example

flower - // the out put i want is also flower

in this...
Forum: C++ Nov 5th, 2008
Replies: 11
Views: 1,111
Posted By localp
now just think that this is a student registration system, and there may be students with the same first name and different surnames for example

james // this is the first name
pauly //...
Forum: C++ Nov 5th, 2008
Replies: 11
Views: 1,111
Posted By localp
hey hey, there is one part left...
it doesn't get displayed as my out put ...... only this pleaseeeeeeeeeeeeeeeee
Forum: C++ Nov 5th, 2008
Replies: 11
Views: 1,111
Posted By localp
hey, it sorted off well, but once when v remove the duplicate once, how r v going to display it as i have shown in my expected out put.. (above)

and thanks alot for the sorting thing
Forum: C++ Nov 5th, 2008
Replies: 11
Views: 1,111
Posted By localp
yeh, that part works when i modify teh code as follows


while (!myfile.eof() )
{
for(int i = 0; !myfile.eof(); i++)
{
getline(myfile, fname[i], '\n' );
getline(myfile,...
Forum: C++ Nov 5th, 2008
Replies: 11
Views: 1,111
Posted By localp
yeh, i should sort it alphabetically, also, what do u mean by not to use EOF, i am kind of new to C++, and please if u dont mind , tell me what and where should i change in order to get this program...
Forum: C++ Nov 5th, 2008
Replies: 14
Views: 1,594
Posted By localp
i am simply clueless can some help me oout from this point ...........
Forum: C++ Nov 5th, 2008
Replies: 14
Views: 1,594
Posted By localp
i am simply clueless can some help me oout from this point ...........
Forum: C++ Nov 5th, 2008
Replies: 11
Views: 1,111
Posted By localp
i have a text file as follows;

james
nnnnnnnnn mmmmm
kristy
llllllllllllllllll oooooooo
james
pppppppp ppppppppppp
james
iiiiiii kkkkkkkkkkkk
Forum: C++ Nov 5th, 2008
Replies: 14
Views: 1,594
Posted By localp
i am simply clueless can some help me oout from this point ...........
Forum: C++ Nov 5th, 2008
Replies: 14
Views: 1,594
Posted By localp
yeh v r allowed to use it ...
Forum: C++ Nov 5th, 2008
Replies: 14
Views: 1,594
Posted By localp
void readDisplayFile()
{
string fname;
string surnames;

ifstream myfile1;
myfile1.open("x.txt");

if (!myfile1)
{
Forum: C++ Nov 5th, 2008
Replies: 14
Views: 1,594
Posted By localp
void readDisplayFile()
{
string fname;
string surnames;

ifstream myfile1;
myfile1.open("x.txt");

if (!myfile1)
{
Forum: C++ Nov 4th, 2008
Replies: 14
Views: 1,594
Posted By localp
i no how to read the data from the text file ehat i want to know is how to check for duplicates, and display it as shown
Forum: C++ Nov 4th, 2008
Replies: 14
Views: 1,594
Posted By localp
i need to write a c++ function that could read in the values of a text file,

but in the text file we need to eliminate duplicate values;

for example we may have values like ;;;;

this is a...
Forum: C++ Oct 30th, 2008
Replies: 5
Views: 987
Posted By localp
Forum: C++ Oct 30th, 2008
Replies: 5
Views: 987
Posted By localp
Forum: C++ Oct 30th, 2008
Replies: 5
Views: 987
Posted By localp
i want to convert a string to an integer value... for example :: if there is a string called "Guy"

G=7; // in the alpherbert G is = 7
u=21;
y=24;

i want the out put to be as >>

7 21 24
Forum: C++ Apr 18th, 2008
Replies: 11
Views: 1,007
Posted By localp
thanx nike_e .. for the helpful links provided . most of the members here provide good solutions to problems but most of them are for the sake of being here. i have seen some giving false...
Forum: C++ Apr 18th, 2008
Replies: 11
Views: 1,007
Posted By localp
this is some thing i designed for my tutorial .. this uses quick sort, insertion, bubble and flag bubble to sort numbers ... you can select one of them and design your code.. i think this code will...
Forum: C++ Apr 12th, 2008
Replies: 8
Views: 706
Posted By localp
[QUOTE=anbuninja;582928]

#include <cmath>
#include <ctime>
#include<iostream>
using namespace std;

int main()

{
Forum: C++ Apr 12th, 2008
Replies: 1
Views: 332
Posted By localp
if i want to read some text data from an input file stream,
01. what hapence if there is no data
02. or if the input file contains errors
03. or if the out put file contains error because of...
Forum: C++ Apr 10th, 2008
Replies: 4
Solved: quick question
Views: 401
Posted By localp
can you give a brief description of your question.. and the kind of out put you are expecting ..
Showing results 1 to 40 of 40

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC