Forum: C++ Jul 31st, 2008 |
| Replies: 6 Views: 332 |
Forum: C++ Jul 28th, 2008 |
| Replies: 6 Views: 332 |
Forum: C++ Jul 28th, 2008 |
| Replies: 6 Views: 332 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 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 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 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 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 |
Forum: C++ Jan 31st, 2008 |
| Replies: 2 Views: 691 |
Forum: C++ Jan 24th, 2008 |
| Replies: 1 Views: 273 |
Forum: C++ Jan 23rd, 2008 |
| Replies: 7 Views: 411 |
Forum: C++ Jan 23rd, 2008 |
| Replies: 7 Views: 411 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 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 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 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 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 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 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 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 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 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 |
Forum: C++ Dec 11th, 2007 |
| Replies: 2 Views: 2,641 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 |
Forum: C++ Nov 27th, 2007 |
| Replies: 2 Views: 543 |
Forum: C++ Nov 27th, 2007 |
| Replies: 2 Views: 543 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 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 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 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 |
Forum: C++ Sep 12th, 2007 |
| Replies: 10 Views: 835 |
Forum: C++ Sep 12th, 2007 |
| Replies: 10 Views: 835 |
Forum: C++ Sep 12th, 2007 |
| Replies: 10 Views: 835 |
Forum: C++ Sep 11th, 2007 |
| Replies: 5 Views: 1,089 |
Forum: C++ Sep 11th, 2007 |
| Replies: 5 Views: 1,089 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 |
Forum: C++ Aug 27th, 2007 |
| Replies: 9 Views: 1,754 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 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 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 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. |