1 comments

@Mithil Poojary 2020-05-23 00:28:01

You need to initialize int del=-1.

Other than that, I don't see a problem. Could be that you might need to use single quotes like this '\n', indicating a character and not double quotes.

Related Questions

Sponsored Content

30 Answered Questions

[SOLVED] How do you set, clear, and toggle a single bit?

25 Answered Questions

[SOLVED] How to convert std::string to lower case?

28 Answered Questions

[SOLVED] Easiest way to convert int to string in C++

79 Answered Questions

[SOLVED] How do I iterate over the words of a string?

  • 2008-10-25 08:58:21
  • Ashwin Nanjappa
  • 2196730 View
  • 3032 Score
  • 79 Answer
  • Tags:   c++ string split

19 Answered Questions

[SOLVED] How can I profile C++ code running on Linux?

  • 2008-12-17 20:29:24
  • Gabriel Isenberg
  • 540297 View
  • 1863 Score
  • 19 Answer
  • Tags:   c++ linux profiling

8 Answered Questions

[SOLVED] How to convert a std::string to const char* or char*?

5 Answered Questions

1 Answered Questions

Finding the position of a symbol in unsigned char and extracting contents between indexes?

  • 2017-09-29 08:11:51
  • fuzzybabybunny
  • 44 View
  • 0 Score
  • 1 Answer
  • Tags:   c++ arduino

1 Answered Questions

Need help getting value from html slider on yun to arduino value

Sponsored Content