Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rajdeep_

@Rajdeep_
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • draw multiple lines and move then on screen
    R Rajdeep_

    Understanding this basic concept is key to writing Windows applications

    very true. You had already justified it in your first reply. :)

    C / C++ / MFC c++ graphics help question

  • Need help with bool implementation.
    R Rajdeep_

    bool isSingleDigit(int x)
    {
    if(x>=0 && x<10){
    return true;
    }
    else{
    return false;
    }
    }
    int main(){
    int y;
    cin>>y;
    bool z=isSingleDigit(int y);
    if(z){
    cout<<"the number is a single digit";
    }
    else{
    cout<<"the number is not a single digit";
    }
    getch();
    return 0;
    }

    compiler throws : Expected primary-expression before int for the line in bold/italics. Help.

    C / C++ / MFC help

  • Help needed to print the value nth number raised to the power n.
    R Rajdeep_

    Thank you. I will work on that part.

    C / C++ / MFC help c++ delphi visual-studio announcement

  • Help needed to print the value nth number raised to the power n.
    R Rajdeep_

    Hello People, I am quite a newbie to C++ programming and I got stuck up with a simple program. The program requires me to print the value for 2 raised to the power 20. I actually had the idea creeping about this program since 1 megabyte is 2 raised to the power 20. I wanted to find the result of that via this piece of code:

    #include
    #include
    int main()
    {
    int a=2;
    for (int i=2; i<=20; i++)
    {
    a=a*a;
    }
    cout<

    and the output I get is: 0

    The compiler/IDE I'm using is Borland C++ (latest version) but I know theres nothing wrong with the compiler though. There must be some logical mistake. Rectification would be appreciated folks. Hoping for help.

    Thanks!
    Rajdeep_

    C / C++ / MFC help c++ delphi visual-studio announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups