User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 428,112 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,610 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 48
Search took 0.01 seconds.
Posts Made By: tonyaim83
Forum: C++ Jul 31st, 2008
Replies: 6
Views: 332
Posted By tonyaim83
Re: creating a map having set as an element

How to create a set which is two dimensional for eg

std::set<int,int> myset;
myset.insert(10,9);//this gives compilation error



kindly help
Forum: C++ Jul 28th, 2008
Replies: 6
Views: 332
Posted By tonyaim83
Re: creating a map having set as an element

No idea as to how i should insert the values in the set which is a part of map
Forum: C++ Jul 28th, 2008
Replies: 6
Views: 332
Posted By tonyaim83
Re: creating a map having set as an element

I m really sorry abt the basic mistake in the errorous code the correct code is :-


..
std::map<std:string,std::set<int,int> > map_of_set;
int a=9;
int b=10;
std::string...
Forum: C++ Jul 28th, 2008
Replies: 6
Views: 332
Posted By tonyaim83
creating a map having set as an element

Hi
I m trying to create a map of STL which has set as one of it's element.
Following is snippet of my code



..
std::map<std:string,std::set<int,int> > map_of_set;
int a=9;
int b=10;
Forum: Ruby May 16th, 2008
Replies: 0
Views: 1,286
Posted By tonyaim83
Problem in using structure in ruby

Hi
I m new to ruby so kindly forgive for small mistakes. I m trying to invoke a c function in ruby which uses a structure * as a parameter but i m able to run in one example and it is not running...
Forum: C++ Feb 25th, 2008
Replies: 3
Views: 620
Posted By tonyaim83
Re: Problem in creating dll

The bold part i'm talking about is from line no. 27-35 the solution provided in which macros need to be defined in the .h files can i remove the extern C as well.
Forum: C++ Feb 22nd, 2008
Replies: 3
Views: 620
Posted By tonyaim83
Problem in creating dll

Hi
My current editor is Dev-Cpp 4.9.2.2 .My test program which runs fine looks like
dll.h

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C"
Forum: C++ Jan 31st, 2008
Replies: 2
Views: 691
Posted By tonyaim83
Re: Problem in inserting values in map containing vector of string

I m able to remove the compilation now.But still i have problem in inserting values for the cities whose name is already existing.

....
string CityName;
string...
Forum: C++ Jan 31st, 2008
Replies: 2
Views: 691
Posted By tonyaim83
Problem in inserting values in map containing vector of string

Hi
My current problem stmt is :- There are n no. of cities each having unique name and each city having m no. of streets. I have all the information as in which street belong to which city and so...
Forum: C++ Jan 24th, 2008
Replies: 1
Views: 273
Posted By tonyaim83
Problem in stripping a particular substring from a string

Hi
My input string is as follows :-

ABC<-AFC:RFS<-DRP:KLE<-SJS:KLS

the required output string should be

ABC<-AFC<-DRP<-SJS

Means to strip down every string after :(colon)
Forum: C++ Jan 23rd, 2008
Replies: 7
Views: 411
Posted By tonyaim83
Re: Implementation problem

The set should be of the form {{{A,B},{B,C},{C,D}},{{D,E},{E,F}}}
Forum: C++ Jan 23rd, 2008
Replies: 7
Views: 411
Posted By tonyaim83
Re: Implementation problem

As suggested by you my current implementation look like

struct LetterPair
{
string First_element;
string second_element;
};

void createset()
{
Forum: C++ Jan 23rd, 2008
Replies: 7
Views: 411
Posted By tonyaim83
Re: Implementation problem

You understood it correctly. Forget the boost thing for the time being. Also let me know i may use these structure one inside another.
Forum: C++ Jan 23rd, 2008
Replies: 7
Views: 411
Posted By tonyaim83
Re: Implementation problem

With regard to this only let me know what code need to be written to have
format of this sort{{{A,B},{B,C},{C,D}},{{A,C},{C,E},{E,F},{F,P}}}
Kindly help
Forum: C++ Jan 23rd, 2008
Replies: 7
Views: 411
Posted By tonyaim83
Implementation problem

Hi...
My input file is as follows :-
A<-B<-C<-D
A<-C<-E<-F<-P
.......
.....

What i want is to first store the given input as follows :-
{{{A,B},{B,C},{C,D}},{{A,C},{C,E},{E,F},{F,P}}}
and then make...
Forum: C++ Jan 9th, 2008
Replies: 6
Views: 5,103
Posted By tonyaim83
Re: How to get the current working directory

Ok my first problem is solved now my code is


char *path=NULL;
size_t size;
path=getcwd(path,size);
cout<<"\n current Path"<<path;


This is working fine. Now what i want is to add string to this...
Forum: C++ Jan 9th, 2008
Replies: 6
Views: 5,103
Posted By tonyaim83
How to get the current working directory

Hi
What is require is to get the path of current working directory.I m working on windows-XP.
Is any function avaliable in c/c++ i could find on net
#include <unistd.h>
char *getcwd(char *buf,...
Forum: C++ Dec 17th, 2007
Replies: 2
Views: 659
Posted By tonyaim83
Runtime error

Hi..
I m working on Windows-Xp and building my project on Dev-cpp. The program compiles properly and i have also included the required dll file in the same folder of exe but when while running this...
Forum: C++ Dec 13th, 2007
Replies: 2
Views: 2,579
Posted By tonyaim83
Re: How to delete all files in a directory

Hi Have done like this now and it is working hope this doesnot have any problem.
If u know any disadvantage of this method kindly let me know that.

DIR *pdir;
struct dirent...
Forum: C++ Dec 13th, 2007
Replies: 2
Views: 2,579
Posted By tonyaim83
How to delete all files in a directory

Hi..
I Want to delete all files in a directory :-

I tried
DeleteFile(".\\ProcFiles\\*.*");

RemoveDirectory(".\\ProcFiles");

But i m not able to delete all files in a directory . I don't...
Forum: C++ Dec 11th, 2007
Replies: 2
Views: 368
Posted By tonyaim83
How to create set of files.

Hi
My input file is as below.

AXY,21,23,12,334,34
VBE,32,34,32,43,34
AXX,32,34,45,32,45
AXY,23,43,323,122
VBE,23,3,323,21,121

Now here the first token designate the nodal name. Now what i want is...
Forum: C++ Dec 11th, 2007
Replies: 3
Views: 618
Posted By tonyaim83
Re: How to identify the operating system

I only want to identify whether i m working on a windows based system or a unix based system. Can we do this.
Forum: C++ Dec 11th, 2007
Replies: 2
Views: 2,641
Posted By tonyaim83
How to create Directory in c++

Hi.
Hi
My program takes the user input of the location where the directory need to be created. I found Windows API: CreateDirectory() but then for Linux i need to write some other function. Is their...
Forum: C++ Dec 11th, 2007
Replies: 3
Views: 618
Posted By tonyaim83
How to identify the operating system

Hi
How should i identify the operating system on which my program is running in c++.

Kindly help
Forum: C++ Nov 27th, 2007
Replies: 2
Views: 543
Posted By tonyaim83
Re: Compilation error in graphml.cpp

Ok i will remember that from the next time. Anyways my problem is solved now.
Thanks
Forum: C++ Nov 27th, 2007
Replies: 2
Views: 543
Posted By tonyaim83
Compilation error in graphml.cpp

Hi
I m using the boost graphml.cpp file to extract information from a graphml file. But when trying to compile this i m getting compilation error " C:\boost_1_34_1\libs\graph\src\graphml.cpp...
Forum: C++ Nov 21st, 2007
Replies: 3
Views: 835
Posted By tonyaim83
Re: Problem in using Map

While using the code provided by you i'm facing one compilation problem
My code is as follows

struct Properties
{
int Min;
int Max;
Properties( int a,int b): Min(a),Max(b)
{ }
};
Forum: C++ Nov 20th, 2007
Replies: 3
Views: 835
Posted By tonyaim83
Problem in using Map

Hi
My problem statement is as follows :-
I have set of processes all having unique name say PROG,PROG1,PROG2 etc.
Now with each of these processes different integer values are being associated...
Forum: Shell Scripting Oct 22nd, 2007
Replies: 1
Views: 686
Posted By tonyaim83
Giving input to a c++ file

My C++ program creates a nxn matrix with given value. For e.g if the input is 10 it will creates a matrix of 10x10 now what i want is the script should run program and give input values in a...
Forum: C++ Sep 12th, 2007
Replies: 1
Views: 551
Posted By tonyaim83
Runtime error while assigning values to 2-d vector

Hi
The following my code snippet
[code=c++]

void main()
{
vector<vector<string> > edge_set_test;
edge_set_test[0][0]="1";
edge_set_test[0][1]="0";
cout<<"\nTesting values...
Forum: C++ Sep 12th, 2007
Replies: 10
Views: 835
Posted By tonyaim83
Re: Problem while using two dimesional vector as a parameter to a method

Thanks it worked it's causing problem as the space is not provided.
Forum: C++ Sep 12th, 2007
Replies: 10
Views: 835
Posted By tonyaim83
Forum: C++ Sep 12th, 2007
Replies: 10
Views: 835
Posted By tonyaim83
Problem while using two dimesional vector as a parameter to a method

[Code:C++]
bool CheckSymmetry(char *File , vector<string>& vertex_set, vector<vector<string>>& edges,vector<string>& char_first)
{
.............
..........
...........
return true;
}

Here i...
Forum: C++ Sep 11th, 2007
Replies: 5
Views: 1,089
Posted By tonyaim83
Re: Variable scope problem

I not at all clear with the solution you have provided . Kindly give some sample code for my problem,
Forum: C++ Sep 11th, 2007
Replies: 5
Views: 1,089
Posted By tonyaim83
Variable scope problem

Hi
I have the following code ...

main()
{
....
...
if(var==true)
{
Graph g1=CreateGraph<Graph>(vertex,edge);
Forum: C++ Sep 11th, 2007
Replies: 4
Views: 769
Posted By tonyaim83
Deciding return type of a function at runtime

Hi..
My code is as follows :-

class Class1
{
};
class class2
{
};
Forum: C++ Aug 27th, 2007
Replies: 9
Views: 1,754
Posted By tonyaim83
Re: creating dynamic array

Also your code given code gives following compilation errors:-

:\srlgrp\boostlib\boost_1_34_0\boost\algorithm\string\yes_no_type.hpp(22) : error C2265: '<Unknown>' : reference to a zero-sized array...
Forum: C++ Aug 27th, 2007
Replies: 9
Views: 1,754
Posted By tonyaim83
Re: creating dynamic array

can u expain what this code signifies

split( elements, line, is_any_of(", ") );
assert( (i<N) && (vertices[i]==elements[0]) && (elements.size()==N+1) ) ; ++i ;
for( size_t j=0 ; j<N ; ++j...
Forum: C++ Aug 27th, 2007
Replies: 4
Views: 3,509
Posted By tonyaim83
Re: Creating two dimensional array

This is my code on which i m getting few problem my goal is to read an input file and create a graph out of it... Here i have indicated where i m facing problem pls help... Rather than understanding...
Forum: C++ Aug 27th, 2007
Replies: 9
Views: 1,754
Posted By tonyaim83
Re: creating dynamic array

How do i create a 2-D array using a vector which is dynamic in nature. Also let me know if how we can make use of "find" in this case.
Showing results 1 to 40 of 48

 
All times are GMT -4. The time now is 1:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC