Quote:
Originally Posted by
yifangt
Learning how arrays, strings, structures, and pointers actually work will explain almost everything that's baffling you right now.
I am very aware of that, which reminds me of my early posts in this forum. Learning by "practice" related to real problem is better, like this one and the strtok() function.
You have learned one way to avoid your blind spots, but your blind spots are still there.
Quote:
Am I stubborn and offending if I insist C++
As I have the same feeling like most of the beginners that sometimes C++ is easier to catch than C
Would you say you could program Perl if you just had line after line of system("echo hello world"), system("mv file1 file2"), system("echo $variable") ?
You understand integers and for-loops, and that's about
all. Everything else you've just "shelled out" to an external library. Your programming comfort zone is very,
very small.
If you don't recognize something, that doesn't make it "C". You've thrown out big parts of both languages along the way.
Quote:
I am not able to mix C with C++ code together in one program at this moment.
Labeling everything you don't understand as "C" and therefore "out of the curriculum" is part of the problem. You've found one C++
library you like and decided that must be what the language is all about. It's not. You've overlooked something important.
I seriously think you should try and program without STL vector, string, and map for a while.