- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi, In this code: DrawPanel.java [code=java] import java.awt.Graphics; import javax.swing.JPanel; public class DrawPanel extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); int width = getWidth(); int height = getHeight(); g.drawLine(0, 0, width, height); g.drawLine(0, height, width, 0); } } [/code] and this the application DrawPaneTest.java [code=java] import javax.swing.JFrame; public … |
|
Hi I have the following function which read ASCII characters(separated by space) from a file and I want to print it out to the screen contents of the data.txt file are like this 70 97 104 97 100 [code=c++] void decode() { string str; string instr; ifstream inFile; cout<<endl; inFile.open("data.txt"); … |
|
Hi I have the following code which is my project I completed section 1 and 2 but it doesn't work could you help figuring why? [CODE=c++] #include<iostream> #include<string> using namespace std; void count(); void reverse(); void encode(); void decode(); int selection; int main() { cout<<"******************"<<endl; cout<<"Welcome To Project"<<endl; cout<<"******************"<<endl; cout<<endl; … |
|
hi please help me finding what's wrong with this code [code=vb] Dim i, j, x As Integer Dim n As Integer = 7 Dim str As String = "" For i = 1 To n For j = 1 To n str = str & " " Next For x … |
|
I installed a vbulltein in my pc during installation everything goes fine but, when viewing the pages i can't see the text only the numbers are showing up I tried uninstalling and reinstalling and i got the same problem an image of the problem is attached any help will appreciated |
|
hi, I have this method [code=java] public void record() { Scanner input = new Scanner( System.in ); int sid; for ( int counter = 0; counter < length; counter++ ) { System.out.println("Student " + (counter+1) + " Record"); System.out.println("****************"); System.out.print("Enter SID: "); a[ counter ] = input.nextInt(); sid=a[counter]; if (isUnique(sid)) … |