I am making small c++ project for my school assignment and something is going wrong.. Its not showing output properly.. can you guys please help me fix it Download it here: http://pyng.org/c++.txt
I gave it a quick glance my C++ is a little rusty. Here's a couple notes: void cric(int,int,int,int); I think you should declare this outside of main() void cric(int,int,int,int); Should be void cric(int); because you only pass it one value--ch int ch,a,b,c; You don't use a,b,c in the main function so you don't need them. case '1': Remove the quotes around 1 because d is an integer Are you getting any specific compiler errors?
Take on board what plog said, I didnt see any other issues than what he found. If you fix it and you still have problems update the txt file