0 Members and 1 Guest are viewing this topic.
.. or doing some weekend gardening ??
Can I get a reply please? A simple 'yes Mark its working' would be good. *hint hint*
smileys are dead .... outside of that, I don't see anything else unusual.Well ... I now see that some files attached to posts are dead links as well.
smileys are dead .... outside of that, I don't see anything else unusual.
are the fonts for the quotes and code segments supposed to be that much smaller now?
maybe its just a timing thing, but despite you having posted in this thread since I last reviewed it, whenever I select "view all unread posts" this thread does not show.Also, I an not getting email notifications. Perhaps that isn't yet turned on.
Congrats Mark Forum functionality seems fine, although I notice (as noted above) that code/quotes are displaying really small text.
Forum functionality seems fine, although I notice (as noted above) that code/quotes are displaying really small text.
Quote from: Lee Mac on May 07, 2011, 11:02:43 AMForum functionality seems fine, although I notice (as noted above) that code/quotes are displaying really small text.Better?
using System;public class PtrIndexDemo{ unsafe public static void Main() { int[] nums = new int[10]; Console.WriteLine("*************Using int**********"); Console.WriteLine("Index pointer like array."); fixed (int* p = nums) { for (int i = 0; i < 10; i++) p[i] = i; // index pointer like array for (int i = 0; i < 10; i++) { int* ptrInt = &p[i]; IntPtr address = (IntPtr)ptrInt; Console.WriteLine("p[{0}]: {1} {2}", i, p[i], address.ToString()); } } // use pointer arithmetic Console.WriteLine("\nUse pointer arithmetic."); fixed (int* p = nums) { for (int i = 0; i < 10; i++) *(p + i) = i; // use pointer arithmetic for (int i = 0; i < 10; i++) { int* ptrInt = &(*(p + i)); IntPtr address = (IntPtr)ptrInt; Console.WriteLine("*(p+{0}): {1} address = {2}", i, *(p + i), address.ToString()); } } Console.WriteLine(""); Console.WriteLine(""); Console.WriteLine("*************Using long**********"); long[] longs = new long[10]; Console.WriteLine("Index pointer like array."); fixed (long* p = longs) { for (int i = 0; i < 10; i++) p[i] = i; // index pointer like array for (int i = 0; i < 10; i++) { long *ptrLong = &p[i]; IntPtr address = (IntPtr)ptrLong; Console.WriteLine("p[{0}]: {1} address = {2}", i, p[i], address.ToString()); } } // use pointer arithmetic Console.WriteLine("\nUse pointer arithmetic."); fixed (long* p = longs) { for (int i = 0; i < 10; i++) *(p + i) = i; // use pointer arithmetic for (int i = 0; i < 10; i++) { long *ptrInt = &(*(p + i)); IntPtr address = (IntPtr)ptrInt; Console.WriteLine("*(p+{0}): {1} {2}", i, *(p + i), address.ToString()); } } Console.ReadLine(); }}
this is a test for the spelling checker
Congratz Mark!I'm missing the old favicon.
Just noticed that colours aren't showing in Code posts, e.g.:http://www.theswamp.org/index.php?topic=38177.msg431889#msg431889Just letting ya know