Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Tuesday, May 10, 2016

How to Create delete a Hard Disk Partition in Windows 7

How to Create/delete a Hard Disk Partition in Windows 7


Hello Everyone, Do you want to Create/delete a Hard Disk Partition in Windows 7 then check this video.

Read More..

Sunday, January 31, 2016

How to create a table in blogspot com

Blogger tricks-making table in bloggerSometimes we try to list some content in a table but there is no tool to create a table in blogger. Here is the code to create the table in blogger.
<table><tbody>
<tr><td>---row1 col1---</td><td>---row1 col2---</td><td>---row1 col3---</td></tr>
<tr><td>---row2 col1---</td><td>---row2 col2---</td><td>---row3 col3---</td></tr>
<tr><td>---row3 col1---</td><td>---row3 col2---</td><td>---row3 col3---</td></tr>
</tbody></table>
  • Paste this code in Edit Html and configure according to your needs
  • The above code creates a table of 3 rows and 3 columns.
  • The code <td>----</td> creates a cell and <tr>---</tr> creates a row
  • You can put anything like a JavaScript, flash etc inside each cell.

Once you paste the above code the output will be as below:
---row1 col1------row1 col2-------row1 col3---
---row2 col1------row2 col2------row3 col3---
---row3 col1------row3 col2------row3 col3---
Read More..

Tuesday, July 15, 2014

How to Create a Header File in C

Although a C++ programmer can use a header file to include any type of code in another file prior to compilation, they mainly use them to define a class. Typically programmers define a class interface in a header file and then write all of the class internal code in a separate source code file. In this way other programmers making use of the class directly or as part of a library need only the header file to inform themselves and the compiler how to use it. A simple class interface defined in a C++ header file can serve as both an example and a template for much larger more complex classes later.

Instructions

Things Youll Need:

  • Text or Code Editor

    Creating a Header File

  1. Step 1

    Create a new file named "MyClass.h." Enter the following three lines at the top of the file:

    #ifndef _MYCLASS
    #define _MYCLASS
    #endif

    The class will be defined between the line beginning with #define and the one beginning with #endif. These are preprocessor directives which tell the compiler to skip inclusion of this files contents if _MYCLASS has already been defined. If _MYCLASS is undefined, the compiler will define it and proceed to include the rest of the file. This prevents you from accidentally including a header file more than once, which can lead to conflicts and errors.

  2. Step 2

    Enter the following two lines after the line beginning with #define:

    #include
    using std::string;

    This example class requires a string data type. The first directive includes the header file for the string class; the second statement simplifies its use by telling the compiler which namespace to make available. Rather than typing "std::string" everywhere, you use a string you can just type "string."

  3. Step 3

    Enter the following before the line with the #endif directive:

    class MyClass
    {
    };

    This defines an empty class.

  4. Step 4

    Fill the empty class by inserting the following lines within the opening and closing brackets:

    public:
    MyClass(string val);
    void setVal(string val);
    string getVal();
    private:
    string _myDataMember;

    You have added one private class data member of type string and three public class method declarations: a constructor and two methods for accessing the data member. Task complete; class interface defined; C++ header file created. Most header files you will create or encounter will simply be more complex variations of this example

Read More..
 
Copyright 2009 Information Blog
Powered By Blogger