Author Topic: Problem while coding.  (Read 2738 times)

Surf

  • Guest
Problem while coding.
« on: February 17, 2010, 06:12:08 am »
Hello,

I'm having troubles while trying to code.

I'm a begginer and I'm trying to code through a website called www.siteduzero.com

At this page : http://www.siteduzero.com/tutoriel-3-13940-un-monde-de-variables.html at about the 5/6th of the page, they show how to do this code :

 1  int main(int argc, char *argv[])
 2  {
 3    int age = 0;
 4
 5    printf("Quel age avez-vous ? ");
 6    scanf("%d", &age);
 7    printf("Ah ! Vous avez donc %d ans !\n\n", age);
 8
 9  return 0;
10 }


So when I do this and click on ''Build and run'' in C::B I get the program open, then I enter the age which is the variable and I hit enter and then I get this error :



And then the program gets closed without completing the codes.

I also get these kind of errors from time to time while surfing net or with other programs.

Anybody knows what could be this error for?

Yes I'm French so I'm obviously looking for a French helper or if you want me to translate the error I could.

Thanks in advance.

Regards,
Luc

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Problem while coding.
« Reply #1 on: February 17, 2010, 06:30:07 am »
Anybody knows what could be this error for?
You are accessing a fault memory page.

Sorry, but this is unrelated to Code::Blocks and violates our forum rules therefore as it this is not a general programming forum.

Try a C/C++ forum or ask for support on www.siteduzero.com.

Topic locked.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ