- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
Try this. It can be made a lot more efficient. Next time please put at least a psuedo code. [code=Java] import java.io.*; class Pal { public static void main(String args[]) throws IOException { int num,rev=0,temp; boolean flag=true; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(flag) { System.out.println("Enter a number:"); num=br.readline(); //To check if …
Another option is you can give- [code=VB.NET] form1.hide() [/code] in the form load event of form2. Then is closing event of form2 you can give- [code=VB.NET] me.Close() form1.Close() [/code]
What exactly is the data type of variable shape? You have declared it as an int and used it as an integer in the switch. But later you have used : [code=C] if (StringEqual(shape, "cube")); [/code] Use it as any one data type. Also there is no semi-colon at the …
Which version of visual studio are you using? I had a similar problem in VS 2005. I reinstalled the entire thing and its working fine now.
I think this can be done by setting autopostback of the 1st text box to true. [code=ASP.NET] Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.TextBox1.AutoPostBack = True End Sub Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged If (Me.TextBox1.Text = "whatever …
I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance.
The problem seems to be that the values are not being set. Try this alternate method its basically doing the same thing: [code=VB.NET] xobjCommand.Parameters.Add("@nim",varchar) xobjCommand.Parameters.Add("@nama",varchar) xobjCommand.Parameters("@nim").value=nim xobjCommand.Parameters("@nama").value=nama [/code]
The End.
@bhi