- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re:
[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; class ll{ public static void main(String[] a) { FileReader fr; try { fr = new FileReader (new File("C:\\University Study\\Component Engineering\\Assignments\\Assignment !\\yourFile.txt")); BufferedReader br = new BufferedReader (fr); String line = br.readLine(); while (line != null) { System.out.println(line); line = br.readLine(); … |
|
Re:
here i have two bubble sort versions. [CODE] void bsort() { int i,j,jc=0,ic=0,temp,swap=1; //for(i=0;i<NOE & swap;i++){ this one or for(i=0;i<NOE-1 & swap;i++){ \\ this swap=0,ic++; for(j=0;j<NOE-1-i;j++){ jc++; if(a[j]>a[j+1]){ temp = a[j]; a[j] = a[j+1]; a[j+1] = temp; swap = 1; } } } printf("jc=%d ic=%d\n",jc,ic); } [/CODE] i checked it … |
|
Re:
This program kinda works, but I have one problem. I setup this program to display a message when someone enters a negative number, but I how do I set the count back to zero. Even though mesage prompts the user that a negative number is invalid, it still calculates the … |
|
Re:
Help Please!! I made a struct array, and I'm trying to pass the entire array of that object to another function. [code=c] struct Crypt { char english; char code; int count=0; }; void main (void) { Crypt Key[26]; analyze(key); } void analyze(?????????) { int i=0; /*just a sample of the … |
|
Re:
here is my code: [code]#include <iostream.h> #include <conio.h> int main() { clrscr(); int A[10][10],m,n,x,y,sum=0; // Ndertojme nje Matrice A cout << "Ju lutemi vendosni numrin e rreshtave dhe te shtyllave per matricen A : \n"; cin>>n>>m; cout << "Vendosni elementet e matrices A duke perdorur hapesine pas cdo elementi dhe … |
|
Re:
This is not a homework problem. I am studying binary search trees and trying to understand how the code works. I have the code, it works, but I want to understand it completely. I have made comments of what I think code does and in the lines that I don't … |
|
Re:
Hi, I use char* for string handling because I read strings from a file and I don't know the length of these strings. The problem comes when I need to keep some strings in an array. I think char** is the best thing for that goal. But again since I … |
|
Re:
hey i am meant to write a method to display a number of prime numbers specified by the user. here's my code and i know its prob all wrong and there are much easier ways to do it but i just wanna know what to do to make it compile … |
|
Re:
Well i got fedora 8 distro and want to install it on fedora 7 ,Well at the first place is there any room for that ? well if it is then how can we do it ? |
|
Re:
Dear Sir / Madam, Please help me again on Delphi. Please help me to write a program that uses a function to caoculate the commission payable to the sales person, when passed the commission rate for the item, the total items sold and the price per item. For example, if … |
|
Re:
create a program that includes two functions named calcavg() and ariance(). The calcavg() function should calculate and return the average of the values stored in an array named testvals. The array should be declared in main() and include the values 89,95,72,83,99,54,86,75,92,73,79,75,82,73. the variance() function should calculate and return the variance … |
|
Re:
hi , i am a new bee to linux and require help in compiling and running java programs in fedora8. have i to install the jdk and the compile or run the program or . i require help |
|
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.. |
|
Re:
its supposed to search string a for string b and once string a matches the requirments it should be printed alongside string b. anyway it does that but the output isnt c c c c c c what it should be but it shows double that for whatever reasons: [code=cplusplus] … |
|
Re:
This is my resource file for a program: [CODE=cplusplus] #include "resource.h" // IDR_MYMENU MENU BEGIN POPUP "&File" //<=error is here BEGIN MENUITEM "&Refresh", ID_PROG_REFRESH MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Edit" BEGIN MENUITEM "&Options", ID_PROG_OPTIONS END POPUP "&About" BEGIN MENUITEM "A&bout AC", ID_PROG_ABOUT END END [/CODE] I've Checked the above over … |
|
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. |
|
Re:
[URL="http://www.daniweb.com/forums/post303743-1.html"]Q.Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. ( suggested by Aniseed ) (Intermediate) [/URL] [code=C++] #include<iostream.h> #include<conio.h> #include<math.h> int prime(int); void main() { int i,j,c1,c2,num,f1,f2; clrscr(); cout<<"Enter the number-"; cin>>num; for(i=2,j=num-2;i<=num/2;i++,j--) { f1=prime(i); if(f1) { f2=prime(j); … |
|
Re:
hello friends can u tell me how to find greatest of three nos using bitwise operators? |
|
Re:
I just built a computer So i have No operating system on it at all. I Used an old version of Windows XP Professional That I began to Install, but Now i do not have the CD Key. How Can I Uninstall Windows So I can start With A Clean … |