Forum: C++ Apr 5th, 2009 |
| Replies: 4 Views: 380 #include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
int A[10][10],m,n,x,y,sum=0;
int temp,lar_sum_row,lar_sum_col;
// Build Matrix A
cout << "Please enter the number of rows and... |
Forum: C++ Apr 5th, 2009 |
| Replies: 5 Views: 805 Why don't you read Andrew Tanenbaum's data structure book. It is explained there properly. |
Forum: C++ Apr 5th, 2009 |
| Replies: 4 Views: 380 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. |
Forum: C Apr 5th, 2009 |
| Replies: 7 Views: 695 I don't know why people don't consult a book before post something? |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 823 How do the control come out of the loop if there is no break statement?
Check it twice, or run it. |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 1,375 Most probably, your file location is wrong. It might be "Assignment 1". |
Forum: Getting Started and Choosing a Distro Apr 4th, 2009 |
| Replies: 7 Views: 814 Sorry for not saying that explicitly, and if you have dual OS then no problem would arise as long your boot-loader is installed correctly. |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 823 Well for a sufficiently large value to check, you can place the Math.sqrt() outside for loop like-
int loop=Math.sqrt(i);
for( int j = 2 ;j <loop ; j++)
{
.
.
.
} |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 823 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++) |
Forum: Getting Started and Choosing a Distro Apr 4th, 2009 |
| Replies: 7 Views: 814 Yes you have room for it.
Select "upgrade Fedora" to do it. |
Forum: Pascal and Delphi Apr 4th, 2009 |
| Replies: 2 Views: 470 See we can help you out only when you get stuck in somewhere writing a code. It's your task to write the program. |
Forum: C Apr 4th, 2009 |
| Replies: 18 Views: 1,511 char* str;
char** match_list;
while (fscanf(inp, "%s", str) != EOF) {
if (matches(str)) {
*match_list = (char**)malloc(sizeof(char*));
*(match_list + i) =... |
Forum: C++ Dec 17th, 2008 |
| Replies: 5 Views: 393 You can do it by your own......... try a little bit. |
Forum: C Sep 8th, 2008 |
| Replies: 3 Views: 716 See Salem my problem is not to generate memory address and write into it. Problem is to write at a particular given location. Would "asm" modifier be helpful in this case ? |
Forum: C++ Sep 7th, 2008 |
| Replies: 5 Views: 644 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 ? |
Forum: C++ Sep 7th, 2008 |
| Replies: 2 Views: 349 Hey buddy why did you write it in c++ forum? You don't understand difference between c++ & shell scripting ? |
Forum: C Sep 6th, 2008 |
| Replies: 2 Views: 579 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... |
Forum: C Sep 6th, 2008 |
| Replies: 3 Views: 716 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.. |
Forum: C Sep 6th, 2008 |
| Replies: 5 Views: 1,263 Here's my answer...no > or < operator used....
#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... |
Forum: Windows NT / 2000 / XP Sep 6th, 2008 |
| Replies: 3 Views: 765 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... |
Forum: C++ Sep 4th, 2008 |
| Replies: 6 Views: 1,127 One thing I forgot...place it in "if" block...like
if(num<0)
{
cout<<......
i--;
continue;
} |
Forum: C++ Sep 4th, 2008 |
| Replies: 6 Views: 1,127 One thing I forgot...place it in "if" block...like
if(num<0)
{
cout<<......
i--;
continue;
} |
Forum: C++ Sep 4th, 2008 |
| Replies: 6 Views: 1,127 That's very simple one. Just write the codes below after line 17.
i--;
continue;
It'll work. |
Forum: C++ Sep 4th, 2008 |
| Replies: 20 Views: 1,744 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... |
Forum: IT Professionals' Lounge Sep 4th, 2008 |
| Replies: 2 Views: 1,692 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... |