- 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
11 Posted Topics
I have this code i java I have class [CODE] class Author { String name,surname; public Author(String name,String surname) { this.name=name; this.surname=surname; } public String getAName() { return name; } public String getASurname() { return surname; } } [/CODE] And This code is OK; I have a button in jFrame …
I'm working in a web application aspx and C#. I have two procedures in code behind. [CODE] protected void Button1_Click(object sender, EventArgs e) { ... int totalCost=1000; Label7.Text = totalCost.ToString(); } [/CODE] i have this code behind in in button2 [CODE] protected void Button2_Click(object sender, EventArgs e) { ... int …
I have created Table in SQL server with visual studio 2005 Table name Student and table data ID,name, surname, indeks, years, I have this code in C# [CODE]protected void Button1_Click(object sender, EventArgs e) { // try //{ SqlConnection conn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=\"|DataDirectory|\\db_lab8.mdf\";Integrated Security=True;Connect Timeout=30;User Instance=True"); // ("Data Source=.\\SQLEXPRESS;AttachDbFilename=\"|DataDirectory|\\db_lab8.mdf\";Integrated Security=True;Connect …
i am doing a project with visual c++ .In my project I have 2 forms . I want to do some calculation of some data of the form Form1, and i want the result of this calculation to write to a label of Form2. How to do this?
stepen=pow(2,bBita-1-i); in this function the compiler announces error 'pow':ambiguous call to overloaded function
Hi I'm new at this I have created a database Person with (ID,Name,address) in MS SQL an d I have the following code [CODE]protected void Button1_Click(object sender, EventArgs e) { System.Data.SqlClient.SqlConnection conn =new System.Data.SqlClient.SqlConnection(); conn.ConnectionString ="integrated security=SSPI;data source=SQL Server Name;" +"persist security info=False;initial catalog=northwind"; try { conn.Open(); string sql = …
I think that this if kph means speed than distance/kph means time in hours you don't need variable hours. you can simlply write [code]System.out.println("Time in Hours: "+subtot); [/code]
You can try like this [CODE]Buffered reader tast=new BufferedReader( new InputStreamreader(System.in)); String age=""; age=tast.readLine(); intage=Integer.parseInt(age); [/CODE]
I have 2 examples for inheritance in Java The first works but the second not. I wonder why. Does the extended class must implement constructor with [B]super()[/B] [code] class Counter { int i = 0; public Counter() { i=1; } Counter increment() { i++; return this; } void print() { …
Another solution int Prime(int k) { int x; for(int i=1;i<k;i++) if(k%i==0) x++; return x; } in main method u have to write int 9; if(prime(9)>1) cout<<"9 is prime "; else cout<<"not prime";
3 years before I used Borland C++ compiler and their editor to and I didn't have to make new project to compile. I just opened I single Cpp file and click Compile and than Run and everything was OK . I'm interested to, to know how to compile a single …
The End.
tonief