Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
615 views

(CS50 mario.less)Please point out the mistake in my code.(pset 1)

I need your assistance with my code foe CS50 problem set 1, the mario(less comfortable). I seem to have a few problems with the logic inside my code. Would you mind pointing out the mistakes? I would ...
ichi's user avatar
  • 3
0 votes
1 answer
183 views

what is wrong with scanf in the program written bellow, Why it is not asking for value when input is not an integer?

#include<stdio.h> #include<stdlib.h> //#include<cs50.h> int main(void){ int minutes; printf("minutes:"); int c=scanf("%d",&minutes);//if input here is character then second ...
Bakul Mittal's user avatar
0 votes
1 answer
446 views

"Error: control may reach end of non-void function". What causes this error? [duplicate]

I'm working with code (that I am not the primary author of) and trying to get it to run. It tests to see if a number is prime or not. It gives me the error error: "control may reach end of non-void ...
user8357's user avatar
1 vote
1 answer
1k views

How to Install Stanford CPP Library for Windows (Visual Studio)?

I am using Visual Studio on windows and would like to use Stanford CPP library. Can anyone tell me what is the standard method to include the library header files to run for my visual studio project? ...
Usman Mahmood Khan's user avatar
0 votes
1 answer
75 views

Can I upgrade appliance for C++11?

I am an alumni of CS50. However, I still use the appliance. I was trying my hands on c++11 but the appliance I guess is configured for c++98 ( from what I have been able to judge from the errors ). So,...
user3523257's user avatar