Search Results

Showing results 1 to 40 of 46
Search took 0.01 seconds.
Search: Posts Made By: karthik.c
Forum: Java 27 Days Ago
Replies: 1
Views: 212
Posted By karthik.c
hi guys im tryin to do a java client / c++ server socket program .in the java client program i serialize the object and pass them over socket to c++ server.now when im gettin them in c++,im not able...
Forum: C++ 28 Days Ago
Replies: 1
Views: 394
Posted By karthik.c
hi guys i tried to read object from a file in cpp using ifstream object like given below:

c++ server:

#include <iostream>
#include <fstream>
#include <string>
#include<sys/types.h>...
Forum: C++ 29 Days Ago
Replies: 1
Views: 394
Posted By karthik.c
hi guys ,im trying to send serialized php object to c++ server. i dont have clear idea if it is possible to deserialize the php object in c++ code.i dont know how to convert it into c++ object and...
Forum: C++ May 23rd, 2009
Replies: 11
Views: 983
Posted By karthik.c
salem im not that good in pointers and have only vague idea about using it ,so i think i have no other option other than to pass them(structure and map) as void *.
if you think there are other...
Forum: C++ May 23rd, 2009
Replies: 11
Views: 983
Posted By karthik.c
ok salem if it is so then why compiler is showing the same error when i write like this:

Map->insert(make_pair(structPtr.Msisdn,structPtr));

i've also included how i've declared everything,so...
Forum: C++ May 23rd, 2009
Replies: 11
Views: 983
Posted By karthik.c
ok sure i'll read about it ,but can you tell me how to cast it to correct type,as i did also tried:

Map->insert(make_pair((std::string)structPtr.Msisdn,structPtr));

but was showing the same...
Forum: C++ May 23rd, 2009
Replies: 11
Views: 983
Posted By karthik.c
hi salem,i have changed char array fields into std::string in structure declaration ,i also changed the same in map & map iterator declaration.now i tried above code like this :

...
Forum: C++ May 22nd, 2009
Replies: 11
Views: 983
Posted By karthik.c
hi salem based on your comment i used std::string and tried to typecast it into correct type like this-

if(strcmp(std::string((char *)structPtr.Msisdn),field)==0)
{

...
Forum: C++ May 22nd, 2009
Replies: 11
Views: 983
Posted By karthik.c
hi one correction in the above code,in the HomeNwList.cpp,inside the for loop it is actually :

for( it = HomeMap.begin(); it != HomeMap.end(); it++)

it is not

for( it = HomeNwList.begin();...
Forum: C++ May 22nd, 2009
Replies: 11
Views: 983
Posted By karthik.c
hi ,when im trying to insert key-value pair in map(key-char array field of a structure,value-entire structure)im having errors .

NDBAPI/TGBitsNdbApi.cpp: In function `int get_map(Ndb*, char*,...
Forum: C May 2nd, 2009
Replies: 7
Views: 733
Posted By karthik.c
hi guys,ive changed the above coding to make it work with no problem while inserting ,deleting,searching which i said before ,but now im facing one new problem of segmentation fault while opting for...
Forum: Windows NT / 2000 / XP May 2nd, 2009
Replies: 8
Views: 540
Posted By karthik.c
i've tried partition magic s/w for resizing the hard drive space(which contained datas) which i already created and and it worked fine .The only problem is that it names the drive by itself i.e it...
Forum: C Apr 21st, 2009
Replies: 7
Views: 733
Posted By karthik.c
thanks jephthah for taking your time to read my code . i've enclosed a link to upload a pdf file which explains the concept of patricia trie and i started doing code based on this concept.because of...
Forum: C Apr 18th, 2009
Replies: 7
Views: 733
Posted By karthik.c
im able to compile and run the above program without any warning/error using the same above pat.c file.problem arises when i try to insert/delete i.e sometimes it is not acceptin more than 2/more...
Forum: C Apr 18th, 2009
Replies: 7
Views: 733
Posted By karthik.c
actually i didnt get the warning what you are saying and im actually passing two int * argument(and so im not passing any strings here) in memcmp() function instead of passing void *, which can...
Forum: C Apr 17th, 2009
Replies: 7
Views: 733
Posted By karthik.c
hi again,i've modified the above coding for pat.c and now im not getting any segmentation stack problem,but im stuck with logical error i.e im not able to insert /delete properly .it would be great...
Forum: C Apr 13th, 2009
Replies: 23
Views: 1,406
Posted By karthik.c
if you are programming in linux ,then debug the program using gdb or some other debugger and find out where segementation fault problem is occuring.
Forum: C++ Apr 11th, 2009
Replies: 13
Views: 510
Posted By karthik.c
@above code-there is no need to put any open/close paranthesis iniside each case statements...
Forum: C Apr 7th, 2009
Replies: 7
Views: 733
Posted By karthik.c
hi guys im trying to code patricia trie in c using gcc and when i debuged the program im gettin segmentation stack problem in search function of it.im not sure why it is showing and i've included...
Forum: C++ Mar 17th, 2009
Replies: 8
Views: 607
Posted By karthik.c
thanx a lot mcriscolo,your explanation was satisfactory ...but i would also like to know if there is any sequential order by which rules defined in the makefile are evaluated or it doesnt matter here...
Forum: C++ Mar 16th, 2009
Replies: 8
Views: 607
Posted By karthik.c
hi mcriscolo, i tried your make file and its working fine without any problem,but still i've some doubts in it to clarify...
>>The other major addition is the ".cpp.o" rule to build the objects...
Forum: C++ Mar 14th, 2009
Replies: 8
Views: 607
Posted By karthik.c
hi mcriscolo ,im sorry i actually misplaced 'ls' in the SOURCES and HEADERS path but later when i gave make command it showed some errors like this:

[root@localhost makedemo]# make
g++ -c -o...
Forum: C++ Mar 13th, 2009
Replies: 8
Views: 607
Posted By karthik.c
hi mcriscolo ,im still having problem after changing it to the way u have told..
error was like this:
[root@localhost makedemo]# make
/bin/sh: /root/workspace/source/: is a directory
/bin/sh:...
Forum: C++ Mar 13th, 2009
Replies: 8
Views: 607
Posted By karthik.c
hi guys im trying to write a makefile which contains :two cpp files and two header files.
now i've put cppfiles in a folder called source whose path is: /root/workspace/source

and header files in...
Forum: C++ Mar 6th, 2009
Replies: 6
Solved: hash map in STL
Views: 3,876
Posted By karthik.c
hi shibukumar, i actually was trying to program the code which was given in a site where they are using hash_map at the same time they are also saying hashtable Datastructure is not part of c++...
Forum: C++ Mar 6th, 2009
Replies: 6
Solved: hash map in STL
Views: 3,876
Posted By karthik.c
hi again,im having some problem while coding with hash_map
my coding was like this:

#include<iostream>
#include<hash_map>
using namespace std;

int main()
{
typedef...
Forum: Perl Mar 6th, 2009
Replies: 5
Views: 937
Posted By karthik.c
hi again ,suppose if i want to connect to another m/c(server) in LAN from my m/c (client)and print the contents of a file in that(server)m/c by specifying the path of that file can i do so using tcp...
Forum: C++ Mar 6th, 2009
Replies: 6
Solved: hash map in STL
Views: 3,876
Posted By karthik.c
thanks narue ,i tried out both ways of inserting:using pair object and operator overload and program is working fine.
Forum: C++ Mar 5th, 2009
Replies: 6
Solved: hash map in STL
Views: 3,876
Posted By karthik.c
hi guys, im trying to do map in cpp using STL and when i ran a simple program it was showing error that:
error:...
Forum: C Mar 5th, 2009
Replies: 5
Views: 904
Posted By karthik.c
hi ancient dragon ,first of all im really sorry for making a stupid statement that file is in client m/c and i should 've been careful before posting it.here goes the scenario...

i expect the file...
Forum: C Mar 4th, 2009
Replies: 5
Views: 904
Posted By karthik.c
i expect the file to be in client m/c and im sure that i've given the correct path for that file from the server m/c ...
Forum: C Mar 4th, 2009
Replies: 5
Views: 904
Posted By karthik.c
hi guys i've problem in tcp:client/server program when i run it:
this program is to print the contents of a file in other m/c connected to LAN im sure that i've given the correct IPAdress,and also...
Forum: C++ Mar 3rd, 2009
Replies: 5
Solved: singleton class
Views: 608
Posted By karthik.c
hi jencas ,thanks for your suggestion and i've already google searched it and this was one of the simple as well as bad code i came across .so i would just like to know whether it forms a singleton...
Forum: C++ Mar 3rd, 2009
Replies: 5
Solved: singleton class
Views: 608
Posted By karthik.c
hi arkm,i would take your suggestion and improve myself and i'm really sorry for posting c++/c mixture code...exact code is like this...


#include<iostream.h>
class Sample
{
static int count;...
Forum: C++ Mar 3rd, 2009
Replies: 5
Solved: singleton class
Views: 608
Posted By karthik.c
Hi guys ,i came across coding in a book where they given the below program and named it as singleton class.but here we are able to create 2nd object and also call constructor for second object (only...
Forum: Perl Mar 3rd, 2009
Replies: 5
Views: 937
Posted By karthik.c
thanx comatose,your explanation was satisfactory and i understood what qw and my is ...
Forum: Perl Mar 2nd, 2009
Replies: 5
Views: 937
Posted By karthik.c
thanx comatose,my program is working now ,there was also error of not specifying scope in the client program and i would like to know:
-> what exactly 'qw' is and is it necessary to include it?...
Forum: Perl Mar 2nd, 2009
Replies: 5
Views: 937
Posted By karthik.c
hi guys ,im new to perl programming and when i programmed tcp client-server coding in perl i encountered some problem saying :
Can't locate socket.pm in @INC (@INC contains:...
Forum: Python Feb 26th, 2009
Replies: 2
Views: 936
Posted By karthik.c
thanx a lot vegaseat...
Forum: Python Feb 17th, 2009
Replies: 2
Views: 936
Posted By karthik.c
i want to print string(given as input) as number(o/p) and i did it in c using switch case .i want to do the same in python...
wat if python provides switch case??n do we have equivalent of it in...
Showing results 1 to 40 of 46

 


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

©2003 - 2009 DaniWeb® LLC