Can functions from the C standard library be used in C++?

前端 未结 3 1035
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-25 11:22

Right now I\'m getting familiar with C and the C standard library and I wonder if my knowledge in this area will be useful when I turn to working with C++ at a later time.

3条回答
  •  一个人的身影
    2020-12-25 11:47

    yes .you can use standard c library functions in C++ Examples

        stdio.h   => cstdio   (printf/scanf)
        math.h    => cmath     (sqrt)  
    

提交回复
热议问题