Tag Archives: Source code

Function to Center Align Text in C++ Program

Though it is sim­ple and really intu­itive to align text in cen­ter of screen through C++ pro­gram, I found many new stu­dents are con­fused and keep look­ing for any built in func­tion. Thus, here I present the source code of func­tion that will cen­ter the text sup­plied in cen­ter of screen (horizontally).

func­tion centerText(char* s){

len=strlen(s);

int pos=(int)((80-len)/2);

for (int i=0; i<pos; i++)

   cout« “ ”;

cout«s;

}

Posted in C++, Examples, Source Codes, Tutorials & How Tos | Tagged C++, center align, cplus plus, example code, Source code, text | 9 Comments

How to Know if Your Blog is Dofollow or Nofollow?

This sim­ple post explains along with illus­tra­tions about the ways to iden­tify if a blog is dofol­low or nofol­low. Iden­tify by source code and by NoD­oFol­low Add-on is explained with easy to fol­low step­wise instruc­tions.
Con­tinue read­ing

Posted in SEO, Tips and Tricks | Tagged Add-on, HTML, Mozilla Firefox, Nofollow, Search engine optimization, Source code, Web page | 49 Comments