Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ question
#1
I have started to program in c++ and I am so use to Quick Macros that putting the ; at the end of every line is really giving me trouble along with all the other seemingly useless stuff that QM doesn't have like {}.

My question is does anyone have macros made for adding the ";" or any other time savers for c++?
#2
Macro Cpp Semicolon
Code:
Copy      Help
str s s1 s2

s1.getfile("$desktop$\your C code.cpp")

foreach s s1
,if !empty(s) && findrx(s "^\s*(/|\*)")<0 ;; Comments: /*, */, // or blank lines
,,s+";"
,s2.from(s2 "[]" s)

s2.setfile("$desktop$\your C code_Semicolon.cpp")


Forum Jump:


Users browsing this thread: 1 Guest(s)