No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
hi all, i've a file named "a.config" with the line "CLUSTER_NAME[\t][\t]cluster1" by [\t] i mean tabs. now i need to change the value cluster1 to someother value, say autocluster. The code which i wrote was : [CODE]cat a.config | sed 's/CLUSTER_NAME[\t][\t] [A-Za-z0-9]*/CLUSTER_NAME[\t][\t]autocluster/' > a.config.temp[/CODE] [CODE]mv a.config.temp a.config[/CODE] but this doesn …
Hi all, My code for SHOP is as follows, problem description [url=http://www.spoj.pl/problems/SHOP/]here[/url]. [code]#include<iostream> #include<queue> #include<climits> using namespace std; class pt{ public: int _x,_y,_cost; pt(){} pt(int x,int y,int z):_x(x),_y(y),_cost(z){} int print(){ printf("%d %d %d\n",_x,_y,_cost); } }; int dx[]={0,-1,0,1}; int dy[]={-1,0,1,0}; int main( ) { int M,N; while(scanf("%d %d",&N,&M)!=EOF){ if(!M&&!N)break; bool flag=false; …
hi ive been doing a project in which metadata for various filetypes(html, xml etc.,) are needed. are there any existing api's to do the above. ideas and suggestions
hi all, i just started doing some uva problems.... first question was 3n+1 problem.... for those who don't know what it is..here is the question... [QUOTE]The Problem Consider the following algorithm: 1. input n 2. print n 3. if n = 1 then STOP 4. if n is odd then …
hi people...was working with hashtable's.... code is as follows : [CODE]public class X{ int a; int b; X(int a, int b){ this.a = a; this.b = b; } public static void main(String a[]){ Map map = new HashMap<X,String>(); map.put(new X(1,2),"some value"); System.out.println(map.get(new X(1,2))); } }[/CODE] gettin o/p as null...is there …
The following snippet throws an Exception in printin part.... [ICODE] ArrayList<ArrayList<Integer>> a = new ArrayList<ArrayList<Integer>>(5); for(int i = 0 ; i < a.size() ; i++){ a.set(i, new ArrayList<Integer>(10)); } System.out.println(a.get(a.size()-1).get(9));//exception thrown [/ICODE] can anyone explain why... thanks in advance...
About me: Name: gowtham Nickname : gowdd Age : 19 I live in : Tamilnadu southern part of India. Education - doing my B.E CSE final year at PSG College of technology, Coimbatore... Hobbies : Playing badminton, gaming(especially action games), a little of programming.... Reason for being here : To …
hi friends....i'm a newbie and jus now i've been browsing through all the forums of DaniWeb... There are forums for almost eveything related to I.T...except Algorithms.... If Algorithms are the basis for programming then why not a forum for it....??? Regards, gowth08
The End.
gowth08