jupyter-c-kernel icon indicating copy to clipboard operation
jupyter-c-kernel copied to clipboard

scanf("%d“, &c);

Open Zengxiaoer991214 opened this issue 3 years ago • 2 comments

i am a rookie,anybody can tell me how to input a input,

such as:

#include <stdio.h>
int main(){
 
    int a;
    scanf("%d", &a,);
    printf("%d",a);

}

i find that there is a solution 'https://github.com/brendan-rius/jupyter-c-kernel/issues/58'

but, where can i put "#include <stdio_wrap.h>" in ? i dont know! help me,please!

Zengxiaoer991214 avatar Jun 11 '21 13:06 Zengxiaoer991214

Hi, The solution you are referring to unfortunately only works in this fork [1] as several changes are needed to make input work. If you follow the install steps there, everything should work as expected. There is a pending pull request #74 for this fork which has not been merged so far.

Best, Xaver

[1] https://github.com/XaverKlemenschits/jupyter-c-kernel

XaverKlemenschits avatar Jun 22 '21 08:06 XaverKlemenschits

its highly needed please merge it

shubha987 avatar Jan 23 '24 22:01 shubha987