473,385 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

struggling with pointers, OOD and C++

[ this post was started from "comp.object" titled "struggling with
Design-Paradigms" but witht he help of Daniel T. it drifted towards a
meaningful path to learn C++. i was helped, so to help other newbies,
i am posting it here :-) ]

thanks

Feb 12 '07 #1
10 1850
[posted by "arnuld"]
hai all,

1st of all, thanks for the replies, to my earlier post, and now with
your help (the comp.object folks :-) the confusion has gone, i am
very clear on my goals but still i have some difficulties. i will be
brief:

i do understand the meaning of variables,objects,function as i have
done some Lisp, so i can say i am not a complete newbie. yes, i have
written some trivial programes too and i can understand books written
for programmers (like Programming Ruby) but cannot understand books
written for for much experienced programmers (like Stroustrup's TC++PL
3/e). since i have never done any professional coding at some company
so i consider myself a beginner.i want to go directly to OOD (without
learning any anything else like procedural paradigm or algorithms).

Is this right way?

i will be looking for a job using C++ but searching the archives of
this newsgroup tells me that is not a good idea. hence, is it OK to
go to through path:

OOA-D - OOP using Eiffel/Ruby - C++

?

thanks

Feb 12 '07 #2
[posted by "Daniel T."]

http://www.parashift.com/c++-faq-lit....html#faq-28.3
Feb 12 '07 #3
[posted by arnuld]
http://www.parashift.com/c++-faq-lit....html#faq-28.3
Daniel, i read that and that is not working for me :-(
i am trying to learn C++ since Nov, 2006. it has been 3 months since
then and i am not even able to understand the Desk calculator program
in chapter 6. i discussed it at "comp.lang.c++" and that did not work
for me. when i tried to understand "Structures" in section 5.7, i hit
with "pointers to char", totally out of my head :-(, and i have only
tried to learn the procedural aspect of C++, the "class concept" never
made any sense to me, so i always avoided it in C++. i think one can
not learn C++ directly, one needs to understand "pointers" (may be
"structures" too) & "OOD" before he jumps to C++.

BTW, it was quite a good moment when i saw the "C++ FAQ" link. you are
still trying to help, nice Daniel T

:-)

Feb 12 '07 #4
-- [posted by "Daniel T."] ----

[posted by arnuld]
http://www.parashift.com/c++-faq-lit....html#faq-28.3

Daniel, i read that and that is not working for me :-(

i am trying to learn C++ since Nov, 2006. it has been 3 months since
then and i am not even able to understand the Desk calculator program
in chapter 6. i discussed it at "comp.lang.c++" and that did not work
for me. when i tried to understand "Structures" in section 5.7, i hit
with "pointers to char", totally out of my head :-(, and i have only
tried to learn the procedural aspect of C++, the "class concept" never
made any sense to me, so i always avoided it in C++. i think one can
not learn C++ directly, one needs to understand "pointers" (may be
"structures" too) & "OOD" before he jumps to C++.

Please understand, the concept of pointers are almost unique to C and C
++, all other languages hide them behind some sort of abstraction. So
the very thing you are having the most trouble with is the thing that
has nothing to do with OOD.

When I first started learning C++, I already knew C (thus I understood
pointers and structures.) Despite that fact, it still took me 3 months
of solid study before I could even begin to understand OO Design. It's
a huge complex topic.

I believe that you will find it impossible to learn OO Design unless
you have a solid understanding of a particular language to express
designs in. If your goal is to learn C++, then that is the language
you should work on. If your goal is to learn OO Design, then you can
certainly learn any of several languages, but your designs will come
out different than they would in C++, and as the FAQ says, there will
be must to unlearn.

BTW, I would not call Stroustrup's book "advanced" but it is succinct.
I wouldn't recommend it for someone trying to learn the language
without a tutor or mentor of some sort.

I have often tutored people through email and IM. If you would like,
send me an email and maybe I can help you work through the book. If
you do send me an email, be sure to put the word "sheltie" in the
subject or my spam filter will trash it.
Feb 12 '07 #5
-- [posted by "Daniel T."] --
[posted by arnuld]
http://www.parashift.com/c++-faq-lit....html#faq-28.3

Daniel, i read that and that is not working for me :-(

i am trying to learn C++ since Nov, 2006. it has been 3 months since
then and i am not even able to understand the Desk calculator program
in chapter 6. i discussed it at "comp.lang.c++" and that did not work
for me. when i tried to understand "Structures" in section 5.7, i hit
with "pointers to char", totally out of my head :-(, and i have only
tried to learn the procedural aspect of C++, the "class concept" never
made any sense to me, so i always avoided it in C++. i think one can
not learn C++ directly, one needs to understand "pointers" (may be
"structures" too) & "OOD" before he jumps to C++.

BTW, it was quite a good moment when i saw the "C++ FAQ" link. you are
still trying to help, nice Daniel T

:-)
Please understand, the concept of pointers are almost unique to C and C
++, all other languages hide them behind some sort of abstraction. So
the very thing you are having the most trouble with is the thing that
has nothing to do with OOD.

When I first started learning C++, I already knew C (thus I understood
pointers and structures.) Despite that fact, it still took me 3 months
of solid study before I could even begin to understand OO Design. It's
a huge complex topic.

I believe that you will find it impossible to learn OO Design unless
you have a solid understanding of a particular language to express
designs in. If your goal is to learn C++, then that is the language
you should work on. If your goal is to learn OO Design, then you can
certainly learn any of several languages, but your designs will come
out different than they would in C++, and as the FAQ says, there will
be must to unlearn.

BTW, I would not call Stroustrup's book "advanced" but it is succinct.
I wouldn't recommend it for someone trying to learn the language
without a tutor or mentor of some sort.

I have often tutored people through email and IM. If you would like,
send me an email and maybe I can help you work through the book. If
you do send me an email, be sure to put the word "sheltie" in the
subject or my spam filter will trash it.

Feb 12 '07 #6
[posted by "arnuld"]

hai Daniel,

as you said, that i can send you an email, for tutoring me. so, i am
writing this to you:

i have downloaded an "illegal .chm" version of Accelerated C++ as this
book is not available in my country :-( & will be very expensive for
me to buy from amazon or blackwell etc.

BTW, "Accelerted C++" (ACPP) makes sense to me :-) i can understand
it.

Please understand, the concept of pointers are almost unique to C and
C++, all other languages hide them behind some sort of abstraction.
you literally gave me an electric-shock by saying this. i learnt Lisp
before and i know, Lisp compiles to assembly code directly, unlike
Eiffel.

does Lisp also hides pointers?

if it is true, then it will be an eye opening experience for me.
So the very thing you are having the most trouble with is the thing that
has nothing to do with OOD.
When I first started learning C++, I already knew C (thus I understood
pointers and structures.) Despite that fact, it still took me 3 months
of solid study before I could even begin to understand OO Design. It's a
huge complex topic.

1. in my case, what to do with pointers?

2. you say my problem has nothing to do with OOD and then you say, for
you, it took 3 months of solid study before you started to understand
OOD. you also say it is huge complex topic.
so i guess, i have choose this path:

pointers/struct in C++ - an OOD book with C++

(OOD book e.g Booch/Rubaugh/page-Jones etc.)

right?

I believe that you will find it impossible to learn OO Design unless you
have a solid understanding of a particular language to express designs
in.

ok, i seem to agree and when you make classes, whether in C++ or Lisp,
they do not make any sense to me. i could write the same program by
breaking it into functions making it easier to understand (though the
program will be larger in code-size, sometimes, not all of the times)

If your goal is to learn C++, then that is the language you should
work on. If your goal is to learn OO Design, then you can certainly
learn any of several languages, but your designs will come out different
than they would in C++, and as the FAQ says, there will be must to
unlearn.
i know & learning path will be "a long time". id o not want to do
that, how can you help me?

BTW, I would not call Stroustrup's book "advanced" but it is succinct. I
wouldn't recommend it for someone trying to learn the language without a
tutor or mentor of some sort.
ok, as i said, ACPP is working for me
I have often tutored people through email and IM. If you would like,
send me an email and maybe I can help you work through the book. If you
do send me an email, be sure to put the word "sheltie" in the subject or
my spam filter will trash it.
that is why i sent you this email
--
http://arnuld.blogspot.com/

Feb 12 '07 #7
On 12 Feb 2007 02:41:46 -0800, "arnuld" <ge*********@gmail.comwrote:
>i have downloaded an "illegal .chm" version of Accelerated C++ as this
book is not available in my country :-( & will be very expensive for
me to buy from amazon or blackwell etc.

BTW, "Accelerted C++" (ACPP) makes sense to me :-) i can understand
it.
I would also recommend the following FREE resource for learning C++. The
entire book is available on the web.

http://www.mindview.net/Books/TICPP/...ngInCPP2e.html

-dr
Feb 12 '07 #8
I would also recommend the following FREE resource for learning C++. The
entire book is available on the web.

http://www.mindview.net/Books/TICPP/...ngInCPP2e.html
thanks and i have a hard-copy of that. trust me, Eckel uses heavy C to
teach C++, NO nothing wrong with that, actually, he uses C to explain
the difference with C++, the most clearly presented difference i have
ever seen but i do not know C :-(

Feb 12 '07 #9
arnuld wrote:
>
Please understand, the concept of pointers are almost unique to C and C
++, all other languages hide them behind some sort of abstraction. So
the very thing you are having the most trouble with is the thing that
has nothing to do with OOD.
"pascal" has pointers, and even introducing "forward type reference" in
order to make lists and other basic structures with the help of pointers.

--
Maksim A. Polyanin

"In thi world of fairy tales rolls are liked olso"
/Gnume/
Feb 12 '07 #10
nw
i have downloaded an "illegal .chm" version of Accelerated C++ as this
book is not available in my country :-( & will be very expensive for
me to buy from amazon or blackwell etc.

BTW, "Accelerted C++" (ACPP) makes sense to me :-) i can understand
it.
I found Accelerated C++ to be a excellent book. Work your way through
it and it should giving you a solid grounding in C++.

Feb 14 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Stan | last post by:
Hey everyone, I've got a computer science class and we're working on C++. I am struggling with nested loops and have a really simple assignment, but I can't get it to run the loop. I need to run...
3
by: Joshua Beall | last post by:
Hi All, Here's what I want to have: a link that when people click on it, another bit of text pops up right below it saying "Click here to continue." Here's what I've got: <a href='#'...
2
by: Riaan C | last post by:
Hi I'm new to C. Here's the problem. I understand the whole concept of pointers and can easily use it with normal non-array variables. I want to declare a array of strings, thus...
13
by: tuchka | last post by:
Hi guys! I am trying to learn C programming but my java background blocks my brains. I have a book with a lot of functions and some of them don't work correctly, so I have opportunity to exercise...
26
by: dagger | last post by:
Hi there. I'm using C under FreeBSD with the gcc compiler and am having a bit of trouble using the calloc and realloc calls. As an example the code snippet: #include <stdio.h> int main() {...
2
by: microsoft | last post by:
Hi All, I am fairly new to Managed C++ extensions. I started trying to implement a interface defined in a C# project, in C++. The problem was with passing value arrays from c# to c++. I found...
160
by: RG | last post by:
Greetings friends, This semester I have started a course in C programming. I was moving along fine until I reached to the topic of loops (feeling embarrassed among you elite programmers). My...
18
by: Tony Burrows | last post by:
I'm just learning C as another language, and I'm trying to build some utilities into a library. I have this (crude I know) function: void insert(char* insrt, char* source, int place){ char...
11
by: briankind | last post by:
Hello i have these radio buttons and i wish to have the corresponding textboxes to be visible when the radiobutton is selected. any Help? snippets. thanks thanks in adv Bry
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.