Tags » C-2

Creating SharePoint 2010 Event Receivers in Visual Studio 2010

Microsoft Visual Studio 2010 provides a project type that enables you to build event receivers that perform actions before or after selected events on a Microsoft SharePoint 2010 site. 982 more words


Default constructor (created automatically)

There are 3 steps in creating an object of class.

  1. Distributing memory space for the object
  2. Initializing member variables using initializer
  3. Running constructor — our topic…
  4. 86 more words

One way to efficiently initialize member variables: Member Intializer

// By the way, this is my first post ever! xD I am very excited!

Member initializer can be used to initialize member variables in class.  157 more words


3D Volume Rendering

This is the first part of a two-semester senior project in which volume rendering is implemented on CPU. The research and development efforts include development of Bitmap file format writer, volume loader, and renderer. 848 more words


New President On The Way Q2 2015

First of all there was the Harry followed by the Harry II and then when they were deleted many people in many countries was dismayed as the radio was always a cult one in some areas. 185 more words


C++ : Program to add two complex numbers using friend function

 * Program to add two complex numbers using  
 * friend function.                                                 

#include <cmath>
#include <iostream>

using namespace std;

class complex {

 private :
 float real ,img;
 public : 
 friend void add(); 

void add();

int main(void) {


 return 0;

void add() {

 complex a, b, c;

 cout << "Enter the values of a and b as in 
               a + ib." << endl;
 cout << "a = ";
 cin >> a.real;
 cout << "b = ";
 cin >> a.img;

 cout << "Enter the values of c and d as in 
               c + id." << endl;
 cout << "c = ";
 cin >> b.real;
 cout << "d = ";
 cin >> b.img;

 c.real = a.real + b.real;
 c.img = a.img + b.img;

 if(c.img >= 0) 
 cout << "Sum of two complex numbers is : " 
      << c.real << " + " << c.img << "i" 
      << endl;
 cout << "Sum of two complex numbers is : " 
      << c.real << " - " << abs(c.img) 
      << "i" << endl;

How to check decimal separator and number group separator for your system?

            string numberDecimalSeparator = System.Globalization.CultureInfo.CurrentUICulture.NumberFormat.NumberDecimalSeparator;
            string numberGroupSeparator = System.Globalization.CultureInfo.CurrentUICulture.NumberFormat.NumberGroupSeparator;

            Console.WriteLine("Ondalik ayraciniz:{0}", numberDecimalSeparator);
            Console.WriteLine("Sayi grup ayraciniz:{0}", numberGroupSeparator);

Problems I Encountered And Solved