- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
19 Posted Topics
Most probably, your file location is wrong. It might be "Assignment 1".
[QUOTE=Iam3R;1135251]here i have two bubble sort versions. [CODE] //for(i=0;i<NOE & swap;i++){ this one or [/CODE] [/QUOTE] I think there will be one more "&" in line no. 6. But it won't help improving the performance though.
That's very simple one. Just write the codes below after line 17. i--; continue; It'll work.
I don't know why people don't consult a book before post something?
Your code is not readable. No indentation, not a comment in English.... If you re-post it after slight modification, then I'll can surely help you out.
[COLOR="Green"]Why don't you read Andrew Tanenbaum's data structure book. It is explained there properly.[/COLOR]
[CODE] char* str; char** match_list; while (fscanf(inp, "%s", str) != EOF) { if (matches(str)) { *match_list = (char**)malloc(sizeof(char*)); *(match_list + i) = str; i++; } } [/CODE] You can try this one...... [CODE] char* str; char** match_list; int len; while (fscanf(inp, "%s", str) != EOF) { if (matches(str)) { len=strlen(str); …
assuming the range to be like 100 . ArrayList<Integer> a = new ArrayList<Integer> (); int range =100 ; a.add(2); a.add(3); for(int i= 4 ; i<range ; i++) { for( int j = 2 ;j <i ; j++) { if( i %j ! = 0 ) a.add(i); } } System.out.println( " …
Yes you have room for it. Select "upgrade Fedora" to do it.
See we can help you out only when you get stuck in somewhere writing a code. It's your task to write the program.
You can do it by your own......... try a little bit.
You don't have to install anything more. Consider you have open a java file in vi editor namely "abc.java", then to compile it, you write "jacac abc.java" in command prompt. After that, to run, write "java abc", means only classname, no extension is necessary.
I'm a IT newbie...one day a CST student asked me whether there is any way to write something at a particular location or not.....so am forwarding it to you all. Please guys help me..
How do you want to print it like? Your input string is "A BB CCC DDDD" & search string is "CCC" so how it should be printed ?
Hey buddy why did you write it in c++ forum? You don't understand difference between c++ & shell scripting ?
Can anybody help me to do this program ? Problem is to write a program which will take another program as a input & it'll give a program flow chart. Ability of processing loops and if-else block would suffice. I can't understand where to start.
Salem's post is just OK. Things that I more wanna say that if you write #include<iostream> then you must write "using namespace std;" next line & you can use #include<cmath> in place of #include<math.h>. That's all.
Here's my answer...no > or < operator used.... [code=c] #include<stdio.h> int greater(int,int); //Returns 1 if former is greater tha latter, else 0. main() { int a,b,c,flag,flag1; printf("Enter the three numbers:\n"); scanf("%d%d%d",&a,&b,&c); flag=greater(a,b); if(flag==1) { flag1=greater(a,c); if(flag1==1) printf("A biggest\n"); else printf("C biggest\n"); } else { flag1=greater(b,c); if(flag1==1) printf("B biggest\n"); else printf("C …
You need a CD-key only? There are some CD-key generator, though not legal, but you can generate some CD-keys by it & can use. It'll be best if you can mange a fresh Win-XP service pack-2 CD from your friends or from somewhere else..
The End.
hiraksarkardg