Click here to Skip to main content
15,067,539 members

Comments by goksurahsan (Top 66 by date)

goksurahsan 30-Jun-20 12:45pm View
   
Yes, I understand now. Thank you again and again. I learned new thing today :)
goksurahsan 30-Jun-20 12:23pm View
   
Really thank you so much. I couldn't understand because I was new to C. I get it now. While the address indicated by the pointer changes in x = * ptr ++ section, the value of y changes according to the address indicated by ptr in y = ++ * ptr section.
goksurahsan 30-Jun-20 11:29am View
   
My question about case 0 when i=3 and x=*ptr++. Because when I used debugger I saw ++ did not work.
goksurahsan 30-Jun-20 10:48am View
   
But ++ near ptr. I should it change ptr. Is this true?
goksurahsan 30-Jun-20 10:44am View
   
And while these codes work as I thought, why does the increment process don't work in the previous code when i = 3 in * (ptr) ++ section. Unfortunately this is the part I do not understand.
goksurahsan 30-Jun-20 10:42am View
   
For example I think these codes are same the before codes:

case 0:
x=*(ptr);
*ptr=*ptr+1;
//x=*ptr++;
// printf("X= %d\n",x);
// printf("*ptr= %d\n\n",*ptr);
break;
case 1:
*(ptr)=*(ptr)+1;
y=*(ptr);
//y=++(*ptr);
goksurahsan 30-Jun-20 10:37am View
   
I understand pre and post-increment before. But I actually ask for this action why when i=3 post-increment didn't work for ptr. I used debugger but debeugger showed me post-increment passed
goksurahsan 28-Jun-20 10:58am View
   
Thanks for answering. I solved it. Thanks again
goksurahsan 28-Jun-20 10:17am View
   
Yes it will print the last name twice, but it worked. Is it about character array. Should I use pointer?
goksurahsan 28-Jun-20 10:11am View
   
I tried this but it didn't work
goksurahsan 27-Jun-20 11:32am View
   
Actually I had seen '\n' character when I used the debugger. But I am new in C and I search on the Internet but I don't understand. I don't know pointers at now. Thank you for answer
goksurahsan 26-Jun-20 11:55am View
   
Thanks for answer
goksurahsan 26-Jun-20 11:32am View
   
Yes, that line
goksurahsan 9-Mar-17 6:56am View
   
Two integer.But when I send for example 3 next 5, I want to clear 3 in memory of Arduino.
I used Serial.flush(); method but it didn't work in my program.
goksurahsan 9-Mar-17 6:22am View
   
Actually I want to send two data from c# to Arduino
goksurahsan 2-Mar-17 1:30am View
   
I opened serial port but I didn't understand our aim. I want to selct only one arduino when two arduino are used
goksurahsan 5-Feb-15 3:20am View
   
thank you
goksurahsan 5-Feb-15 2:59am View
   
I want to write number to textbox. Therefor I wrote that
goksurahsan 5-Feb-15 2:57am View
   
Yes, I want to that you showed.
goksurahsan 4-Feb-15 9:50am View
   
I asked proragram that give digit of given number
goksurahsan 4-Feb-15 3:54am View
   
Thank you
goksurahsan 2-Oct-14 15:31pm View
   
thank you very much...
goksurahsan 2-Oct-14 14:37pm View
   
I wrote new FileStream(@"C:\Windows\test.pdf"),FileMode.Create)
but it was denied
goksurahsan 2-Oct-14 14:21pm View
   
I tried that but i can not
goksurahsan 2-Oct-14 14:04pm View
   
I read RyanDev
goksurahsan 2-Oct-14 14:04pm View
   
I want to create a pdf in local disk (C).But that code that I wrote create a pdf in debug
goksurahsan 16-Sep-14 5:24am View
   
okey thank you
goksurahsan 16-Sep-14 4:17am View
   
I didn't get any error but it didn't work .
goksurahsan 16-Sep-14 3:56am View
   
There is a wrong , but I didn't understand.
goksurahsan 3-Sep-14 4:29am View
   
yes, here is good example. But it doesn't have thing which I wanted. I want to change opd.Filter = "file of music | '. wav'"; this code to mp3
goksurahsan 3-Sep-14 4:17am View
   
thank you for helping
goksurahsan 2-Sep-14 9:23am View
   
I took this error
goksurahsan 2-Sep-14 9:22am View
   
Error 1 The type or namespace name 'WMPLib' could not be found (are you missing a using directive or an assembly reference?) C:\Users\faikbatan\Desktop\Alarm Clock\Alarm Clock\Alarm.cs 53 13 Alarm Clock
goksurahsan 29-Aug-14 6:22am View
   
I search these and I did a lot but I didn't write page setup :(
goksurahsan 29-Aug-14 6:15am View
   
thank you for helping
goksurahsan 8-Aug-14 8:23am View
   
I understand my code but I said it did not work
goksurahsan 8-Aug-14 7:45am View
   
I understand anything?
goksurahsan 8-Aug-14 6:03am View
   
when I run it, this code not show kind of file
goksurahsan 7-Aug-14 7:19am View
   
filetype
goksurahsan 2-Aug-14 9:20am View
   
there is a file in my computer and I want to find it with c# programme. what can I do it?
goksurahsan 24-Jul-14 5:04am View
   
my file does not have a single string
goksurahsan 24-Jul-14 5:00am View
   
I wrote this code but it was not working
goksurahsan 24-Jul-14 4:59am View
   
string connection;
connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Rahsan.accdb;";
OleDbConnection con = new OleDbConnection(connection);
try
{
con.Open();
string line;
StreamReader reader = new StreamReader(file);
while ((line = reader.ReadLine()) != null)
{
string sql = "insert into phone name=@name,surname=@surname,telephone=@telephone,email=email";
OleDbCommand cmd = new OleDbCommand(sql, con);
cmd.Parameters.AddWithValue("@name", con);
cmd.Parameters.AddWithValue("@surname", con);
cmd.Parameters.AddWithValue("@telephone", con);
cmd.Parameters.AddWithValue("@email", con);
cmd.ExecuteNonQuery();
MessageBox.Show("your datas were imported");
}
}
catch (Exception ex)
{
MessageBox.Show("there is error " + ex.Message.ToString());
return;
}
goksurahsan 24-Jul-14 4:50am View
   
I wrote that but I think I have to use loop but in this code there is no loop
goksurahsan 24-Jul-14 3:45am View
   
I'm using access base
goksurahsan 24-Jul-14 3:38am View
   
I checked that but I didn't need this
goksurahsan 23-Jul-14 8:30am View
   
yes
goksurahsan 23-Jul-14 8:26am View
   
thank you
goksurahsan 23-Jul-14 8:22am View
   
thank you I did this but I want to show data and this didn't show data
goksurahsan 23-Jul-14 8:17am View
   
string connection;
connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Rahsan.accdb;";
goksurahsan 23-Jul-14 8:14am View
   
program didn't show data
goksurahsan 23-Jul-14 8:14am View
   
no it isn't working :(
goksurahsan 23-Jul-14 8:12am View
   
what can I do?
goksurahsan 23-Jul-14 8:11am View
   
I ' m working on windows form
goksurahsan 23-Jul-14 8:10am View
   
yes
goksurahsan 23-Jul-14 8:09am View
   
this is error
goksurahsan 23-Jul-14 8:08am View
   
Error 1 'System.Windows.Forms.DataGridView' does not contain a definition for 'DataBind' and no extension method 'DataBind' accepting a first argument of type 'System.Windows.Forms.DataGridView' could be found (are you missing a using directive or an assembly reference?) C:\Users\Rahsan-PC\Documents\Visual Studio 2012\Projects\PhoneBook\PhoneBook\frmphones.cs 219 31 PhoneBook
goksurahsan 23-Jul-14 8:05am View
   
Error 1 'System.Windows.Forms.DataGridView' does not contain a definition for 'DataBind' and no extension method 'DataBind' accepting a first argument of type 'System.Windows.Forms.DataGridView' could be found (are you missing a using directive or an assembly reference?) C:\Users\Rahsan-PC\Documents\Visual Studio 2012\Projects\PhoneBook\PhoneBook\frmphones.cs 219 31 PhoneBook
goksurahsan 23-Jul-14 8:03am View
   
ohh ı wrote wrong but it didn't run repeat
goksurahsan 23-Jul-14 8:01am View
   
SqlConnection con = new SqlConnection(connection);
con.Open();
SqlDataAdapter sql = new SqlDataAdapter("select * from phone",con);
DataSet ds = new DataSet();
sql.Fill(ds);
con.Close();
if (ds.Tables[0].Rows.Count != 0) {
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();
goksurahsan 23-Jul-14 7:59am View
   
I don't understand you :(
goksurahsan 23-Jul-14 7:53am View
   
I can't use .Data.Bind();
goksurahsan 23-Jul-14 7:52am View
   
thank you but ı did this
goksurahsan 23-Jul-14 7:18am View
   
but ı can't use Data.Bind() :(
goksurahsan 23-Jul-14 7:15am View
   
thank you
goksurahsan 23-Jul-14 7:00am View
   
I looked everything in google but i don't understand anything