currently I'm rewriting old euler solutions into classes so i can store them in a library. I wrote a program that digitizes a number so it can check to see if it a pallindrome, The base class digitize dynamically allocates memory for the size of a number and stores each digit, My second class pallindrome inherits the members of digitize, and refrences the constructor using the :, however when I construct the pallindrome class i get a back trace error. I know I can probably just not use inheritance and it will work but i want to know why this …

Member Avatar
Member Avatar
+0 forum 2

Hi, i am getting a lot of dirty questions on formspring i want to find out who he is, he is sending me questions with an anonymos user. How do i found out his IP adress ?

Member Avatar
Member Avatar
+0 forum 1

Sometimes, before optimizing your code, you may end up to have very slow running code in list comprehension statement. Because you have not yet tested the code fully, it easy to loose patience and just interrupt the code. If you are making function, you can insert print statements for verification. But how to put print in list comprehension. If you are using function to produce the result you can insert a print there or you could use some debugging tools. I however often keep it simple and I came up with this pass through trivial function which basically just prints …

Member Avatar
Member Avatar
+1 forum 1

Okay I am pretty knew to c# and I am struggling to learn it. However back to my question how do I record a trace table for example this is the code I have:- [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { double numBooks = 0; int count = 0; double bookPrice = 0.0; double totalCost = 0.0; string numBooksstring; string bookPricestring; Console.WriteLine("Enter number of books required"); numBooksstring = Console.ReadLine(); numBooks = double.Parse(numBooksstring); // Loop to read the price of each book for(count = 0; count < numBooks; count++) …

Member Avatar
Member Avatar
+0 forum 2

Introduction How to capture the errors from application and write it in a log file. We have to mention the directory path in Webconfig file. Background This code is to capture the error log in log file with all information. The code Code: CSharp [CODE] public class LogError { private DateTime errorDt; private string src; private Exception errorInfo; public static string strDirectoryPath; public DateTime ErrorDate { get {return errorDt; } set { errorDt = value;} } public string ErrorSrc { get { return src; } set { src = value; } } public Exception ErrorInformation { get { return errorInfo; …

Member Avatar
Member Avatar
+0 forum 2

The End.