Hi everyone The output of this code is 10, I want to know why **q prints 10? int x,*p,**q; x=10; p=&x q=&p; cout<<**q;
messages
Posts
-
pointer to pointer -
change text from formHi OriginalGriff I exactly wrote what you said for form2 Form2 f2 = new Form2(); f2.MyProperty = "hello!"; ... but it works very well for form1 but doesnt work for form2. I dont know why C# doenst understand it.
-
change text from formBecause I have to write it with properties.(btw can I declare a property of type? but how?)
-
change text from formevent handler is problem,I cant use of it.is it possible without events?
-
change text from formIts not possible I cant add two references in each form,compiler doesnt complie my code,I have tired. could you help richard please?
-
change text from formOriginalGriff your examples are my problem,show two forms and exchange the text,but you are solved a half of problem,is it possible to write a full code it?
-
change text from formwell its very important to know and your code does not work when I click the button on the form2 it shows this error Object reference not set to an instance of an object
-
change text from formI have tired as you said but it didnt work.could you write what you said?
-
change text from formThank for your reply OriginalGriff,but a question we didnt write any thing in the form2.in the form2 we have defined a property and insert close() method.but in the form1 we get the text from textbox and set the title of the form. is it possible to show two forms in the same time?
-
change text from formHi everyone Im going to change the text from two forms for this operation I have a textbox and button in the form1 and a textbox and a button on the form2 each time I click on the button1 it must change the title from the form2 and vice versa Im using of this code in the form1 private void button1_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); form2.Show(); new Form2().Text = textBoxform1.Text; Hide(); } in the form2 private void button1_Click(object sender, EventArgs e) { Form1 form1 = new Form1(); form1.Show(); form1.Text= textBoxform2.Text; Hide(); } but this code have a problem each time I want to change the text from forms I have to make a new instance of forms is it an another way to change
-
return valueThank you Aescleal.
-
return valueThank you Joe794.
-
return valueThis recursive function doesnt have a end point,becuase 12 item is not exist in the array.How we can fix this recursive function to solve this problem?
int _tmain(int argc, _TCHAR* argv[])
{
int arr[10] = {1,2,3,4,5,6,7,8,9,10};
int sum;sum=BinSearch(arr,12,0,9); cout< A\[mid\]) return Binary\_Search(A,item,mid+1,height); else return Binary\_Search(A,item,low,mid-1);
}
-
OrderI have to compute it myself on the paper without any program. but I cant do it,could you help me please?
-
OrderNo its not a programming project.its about data structure lesson an I have to compute it myself.
-
OrderWriting a program to compute n series of Fibonachi (Recursive and No Recursive ) I wrote this for non recursive
#include
using namespace std;int Fibo(int number);
int _tmain(int argc, _TCHAR* argv[])
{
int i,sum,n,a1,a2;
cout<<"enter number : "<>n;
i=3;
sum=0;
if(n==1)
cout<<"1";
else if(n==2)
cout<<"1,1";
else
{
cout<<"1 ,1 ,";
a1=1,a2=1;
while (i<=(n))
{
sum=a1+a2;
cout<>nn;
while(ii<=nn)
{
cout<<"\t"<
buw my question how can I compare these two methods for memory usage and their speed? -
mathematicSHi everyone I'm looking for a site to learning mathematical from base to subject's like integral,before asking in this forum I was searching by google, but I couldnt find any helpful site.can you help me or do you know a expert site? Thanks
-
rule of DataAdapterAnd we can use of it form programming (dataset dt=new,....) and from toolbox in the visual studio,right?
-
rule of DataAdapterIs it correct we can fill a dataset with connected objects(connection,command,dataadapter) and without them(with data source window)? if yes so we are using of the connected objects to fill a disconnected object(dataset),right?
-
rule of DataAdapterHi everyone I have a question,is it correct connected data objects consist of connection,command,reader and dataadapter(why we need to DataAdapter in a connected model?),transaction,.... disconnected data objects consist of dataset,dataTable,datarow,dataadapter so we have two main models connected and disconnected. what is the rule of DataAdapter in connected model? why do we need to use of a dataadpter to fill a dataset like this in a connected model?
.....
sqlDataAdapter = new SqlDataAdapter(cmdString, sqlConnection);
sqlDataAdapter.SelectCommand = sqlCommand;
SqlDataAdapter sqlDataAdapter;
sqlDataSet = new DataSet();
sqlDataSet.Clear();
int intValue = sqlDataAdapter.Fill(sqlDataSet);is it right we are shifting of connected model to disconnected model,if yes why?