Hi what is wrong with thiss code

K

kol

http://visualcsamples.awardspace.co.uk/
this code\\


#include <cstdlib>
#include <iostream>

using namespace std;

void const pring(const int r){
r++; ;

cout <<"R IS " << r<<endl;
}

int main(int argc, char *argv[])
{
const int b = 5;
pring(b);

system("PAUSE");
return EXIT_SUCCESS;
}
 
A

Andre Kostur

#include <cstdlib>
#include <iostream>

using namespace std;

void const pring(const int r){
r++; ;

cout <<"R IS " << r<<endl;
}

int main(int argc, char *argv[])
{
const int b = 5;
pring(b);

system("PAUSE");
return EXIT_SUCCESS;
}


Why? What do you think is wrong? Have you tried to compile it and see
what happens?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top