Search Results

Showing results 1 to 40 of 49
Search took 0.01 seconds.
Search: Posts Made By: tonyaim83
Forum: MS SQL Oct 20th, 2008
Replies: 2
Views: 748
Posted By tonyaim83
How do I get ONLY data type and name of all the columns available in given table_name
Forum: C++ Jul 31st, 2008
Replies: 6
Views: 1,063
Posted By tonyaim83
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: 1,063
Posted By tonyaim83
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: 1,063
Posted By tonyaim83
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 str="test";...
Forum: C++ Jul 28th, 2008
Replies: 6
Views: 1,063
Posted By tonyaim83
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: 2,353
Posted By tonyaim83
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: 1,278
Posted By tonyaim83
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: 1,278
Posted By tonyaim83
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: 2,044
Posted By tonyaim83
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 StreetName;...
Forum: C++ Jan 31st, 2008
Replies: 2
Views: 2,044
Posted By tonyaim83
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: 519
Posted By tonyaim83
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: 711
Posted By tonyaim83
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: 711
Posted By tonyaim83
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: 711
Posted By tonyaim83
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: 711
Posted By tonyaim83
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: 711
Posted By tonyaim83
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...
Forum: C++ Jan 9th, 2008
Replies: 16
Views: 22,979
Posted By tonyaim83
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...
Forum: C++ Jan 9th, 2008
Replies: 16
Views: 22,979
Posted By tonyaim83
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: 949
Posted By tonyaim83
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...
Forum: C++ Dec 13th, 2007
Replies: 2
Views: 8,814
Posted By tonyaim83
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 *pent;...
Forum: C++ Dec 13th, 2007
Replies: 2
Views: 8,814
Posted By tonyaim83
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...
Forum: C++ Dec 12th, 2007
Replies: 2
Views: 636
Posted By tonyaim83
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...
Forum: C++ Dec 11th, 2007
Replies: 3
Views: 1,173
Posted By tonyaim83
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: 6,204
Posted By tonyaim83
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...
Forum: C++ Dec 11th, 2007
Replies: 3
Views: 1,173
Posted By tonyaim83
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: 1,015
Posted By tonyaim83
Ok i will remember that from the next time. Anyways my problem is solved now.
Thanks
Forum: C++ Nov 27th, 2007
Replies: 2
Views: 1,015
Posted By tonyaim83
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: 1,618
Posted By tonyaim83
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: 1,618
Posted By tonyaim83
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...
Forum: Shell Scripting Oct 22nd, 2007
Replies: 1
Views: 1,028
Posted By tonyaim83
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: 1,063
Posted By tonyaim83
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: 1,512
Posted By tonyaim83
Thanks it worked it's causing problem as the space is not provided.
Forum: C++ Sep 12th, 2007
Replies: 10
Views: 1,512
Posted By tonyaim83
Forum: C++ Sep 12th, 2007
Replies: 10
Views: 1,512
Posted By tonyaim83
[Code:C++]
bool CheckSymmetry(char *File , vector<string>& vertex_set, vector<vector<string>>& edges,vector<string>& char_first)
{
.............
..........
...........
return true;
}
...
Forum: C++ Sep 11th, 2007
Replies: 5
Views: 2,202
Posted By tonyaim83
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: 2,202
Posted By tonyaim83
Hi
I have the following code ...

main()
{
....
...
if(var==true)
{
Graph g1=CreateGraph<Graph>(vertex,edge);
Forum: C++ Sep 11th, 2007
Replies: 4
Views: 1,423
Posted By tonyaim83
Hi..
My code is as follows :-

class Class1
{
};
class class2
{
};
Forum: C++ Aug 27th, 2007
Replies: 9
Views: 3,348
Posted By tonyaim83
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...
Forum: C++ Aug 27th, 2007
Replies: 9
Views: 3,348
Posted By tonyaim83
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 ;...
Forum: C++ Aug 27th, 2007
Replies: 4
Views: 7,250
Posted By tonyaim83
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...
Showing results 1 to 40 of 49

 


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

©2003 - 2009 DaniWeb® LLC