I used this site for a c++ homework assignment that my teacher left me no
clue on how to do it. http://www.betterteachers.com. Check it out.
Fred 31 2174
Fred Astair posted: I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred
Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
-JKop
JKop wrote: Fred Astair posted:
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
-JKop
Having a teacher isn't an either/or situation.
"JKop" <NU**@NULL.NULL> wrote in message
news:6e*******************@news.indigo.ie... Fred Astair posted:
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
I wouldn't stress that one example too much.
However, there's something to be said for learning C++ independently from
textbooks, since some excellent C++ books are widely available and good C++
teachers seem to be in short supply.
Jonathan
"JKop" <NU**@NULL.NULL> wrote in message
news:6e*******************@news.indigo.ie... Fred Astair posted:
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
-JKop
Given that you recently threw one on line fit because you couldn't add an
integer to a string and another because you couldn't return a stream by
value, I would say this proof is a little leaky.
--
Cy http://home.rochester.rr.com/cyhome/
"JKop" <NU**@NULL.NULL> wrote in message
news:6e*******************@news.indigo.ie... Fred Astair posted:
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
Depends on the teacher. With a good teacher(s), you may learn faster and
spend less time for digging in books, manuals and other materials. I missed
that a lot. But I took care to guide other's study in the companies that I
worked.
Catalin
Jonathan Turkanis posted: "JKop" <NU**@NULL.NULL> wrote in message news:6e*******************@news.indigo.ie... Fred Astair posted:
> I used this site for a c++ homework assignment that my teacher left > me no clue on how to do it. http://www.betterteachers.com. Check it > out. > > Fred Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
I wouldn't stress that one example too much.
Any particular reason why?
-JKop
Cy Edmunds posted: "JKop" <NU**@NULL.NULL> wrote in message news:6e*******************@news.indigo.ie... Fred Astair posted:
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred
Since when does one need a teacher to learn C++?!
I'm living proof of the contrary.
-JKop
Given that you recently threw one on line fit because you couldn't add an integer to a string and another because you couldn't return a
stream by value, I would say this proof is a little leaky.
You learn something new everyday.
-JKop Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
Definitely agree with you there! While having a teacher (for anything in
life really) will make you learn faster, still there's no need for the
teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
-JKop
"JKop" <NU**@NULL.NULL> wrote in message
news:LR*******************@news.indigo.ie... Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
Definitely agree with you there! While having a teacher (for anything in life really) will make you learn faster, still there's no need for the teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
When you find it, tell me :). I'm curious.
Catalin
"Catalin Pitis" <ca***********@iquestint.com.renameme> schrieb im
Newsbeitrag news:2u*************@uni-berlin.de... "JKop" <NU**@NULL.NULL> wrote in message news:LR*******************@news.indigo.ie... Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
Definitely agree with you there! While having a teacher (for anything in life really) will make you learn faster, still there's no need for the teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
When you find it, tell me :). I'm curious.
Don't understand: Is there no book that tells you that it's illegal?
I'm gonna write one. Title:
"Dereferencing an uninitialized pointer is illegal".
Content:
Dereferencing an uninitialized pointer is illegal. Example:
int* p_k; *p_k=4; [1]
References:
[1] JKob in comp.lang.c++, 27.10.2004
Am I gonna be rich?
-Gernot
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:2u*************@uni-berlin.de... "Catalin Pitis" <ca***********@iquestint.com.renameme> schrieb im Newsbeitrag news:2u*************@uni-berlin.de... "JKop" <NU**@NULL.NULL> wrote in message news:LR*******************@news.indigo.ie... Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
Definitely agree with you there! While having a teacher (for anything in life really) will make you learn faster, still there's no need for the teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
When you find it, tell me :). I'm curious.
Don't understand: Is there no book that tells you that it's illegal? I'm gonna write one. Title: "Dereferencing an uninitialized pointer is illegal".
Content: Dereferencing an uninitialized pointer is illegal. Example: int* p_k; *p_k=4; [1]
References: [1] JKob in comp.lang.c++, 27.10.2004
Am I gonna be rich? -Gernot
It should be a missundertanding :). By illegal I meant that the compiler
doesn't allow me to do it. But I'm allowed to do it. I surely wouldn't do it
:).
Catalin
Hi Fred, I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Nice. Did it help? Did you learn a lot?
Regards,
Patrick Given that you recently threw one on line fit because you couldn't add an integer to a string and another because you couldn't return a stream by value, I would say this proof is a little leaky.
Actually, don't you think that destroys your own argument? You've just
expressed that at one time I didn't know how to append a number in digit
form to a string, and that I didn't know why a stream could not be copied.
Evidently, I posted enquiring about these, and now I know how. Emphasis on
"now I know". Quit living in the past.
-JKop
Catalin Pitis wrote: Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
I do not think that a teacher for C++ will help learning any programming
language faster. In the end, you will have to do the reading. Actually,
there is the additional time cost (meaning lost time) of the lesson
which makes things worse. It is better to get learning by reading a good
book since the beginning.
In a large scale learning however, for example studies, where you learn
many things simultaneously, a teacher/professor helps to maintain focus.
--
Ioannis Vranos http://www23.brinkster.com/noicys
Patrick Kowalzick wrote: Hi Fred,
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Nice. Did it help? Did you learn a lot?
Regards, Patrick
Isn't there a session where you are to defend your project/assignment.
If yes, start understanding the code, if no, bad school.
Fred Astair wrote: I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred
Isn't there a session where you are to defend your project/assignment.
If yes, start understanding the code, if no, bad school.
"Ioannis Vranos" <iv*@guesswh.at.grad.com> wrote in message
news:1098881672.371203@athnrd02... Catalin Pitis wrote:
Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
I do not think that a teacher for C++ will help learning any programming language faster. In the end, you will have to do the reading. Actually, there is the additional time cost (meaning lost time) of the lesson which makes things worse. It is better to get learning by reading a good book since the beginning.
In a large scale learning however, for example studies, where you learn many things simultaneously, a teacher/professor helps to maintain focus.
I ment something else. I missed someone to guide my studies in C++ when I
started to learn it. Starting with good books and ending with some good
explanations to some issues that I couldn't easy understand. Of course the
teacher can't make you learn faster than your capacity. But he/she can
minimize your time to search for good materials. At least until you become
independent and can judge for yourself :).
So maybe teacher is not the right word. It might be mentor.
Catalin
Fred Astair wrote: I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out.
Fred
I'm somewhat suprised that no-one has commented on this...
It's clearly a total scam. I tried e-mailing them out of interest and
they are charging stupid amounts of money to write trivial 10 line
programs. I actualy bought one and found that it had a number of really
quite trivial mistakes ¬_¬.
Also, is anyone really so desperate that they would pay someone else to
write their programs for them? You still won't pass you exams...
Chris
"JKop" <NU**@NULL.NULL> wrote: Jonathan Turkanis posted: "JKop" <NU**@NULL.NULL> wrote :
Since when does one need a teacher to learn C++?!
I'm living proof of the contrary. I wouldn't stress that one example too much.
Any particular reason why?
I was trying to express what I thought was a pretty obvious point without being
overtly rude. As is so often the case, I probably should have kept my mouth
shut.
-JKop
Jonathan
"JKop" <NU**@NULL.NULL> wrote in message
news:dz*******************@news.indigo.ie... Given that you recently threw one on line fit because you couldn't add an integer to a string and another because you couldn't return a stream by value, I would say this proof is a little leaky.
Actually, don't you think that destroys your own argument? You've just expressed that at one time I didn't know how to append a number in digit form to a string, and that I didn't know why a stream could not be copied. Evidently, I posted enquiring about these, and now I know how. Emphasis on "now I know". Quit living in the past.
-JKop
On 10/23/2004
"JKop" <NU**@NULL.NULL> wrote in message
news:D8*******************@news.indigo.ie... Hello!
I'm an expert C++ programmer.
-Mike
On Wed, 27 Oct 2004 12:40:03 +0300, "Catalin Pitis"
<ca***********@iquestint.com.renameme> wrote: "Gernot Frisch" <Me@Privacy.net> wrote in message news:2u*************@uni-berlin.de... "Catalin Pitis" <ca***********@iquestint.com.renameme> schrieb im Newsbeitrag news:2u*************@uni-berlin.de... "JKop" <NU**@NULL.NULL> wrote in message news:LR*******************@news.indigo.ie...
Definitely agree with you there! While having a teacher (for anything in life really) will make you learn faster, still there's no need for the teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
When you find it, tell me :). I'm curious.
Don't understand: Is there no book that tells you that it's illegal? I'm gonna write one. Title: "Dereferencing an uninitialized pointer is illegal".
Content: Dereferencing an uninitialized pointer is illegal. Example: int* p_k; *p_k=4; [1]
References: [1] JKob in comp.lang.c++, 27.10.2004
Am I gonna be rich? -Gernot
It should be a missundertanding :). By illegal I meant that the compiler doesn't allow me to do it. But I'm allowed to do it. I surely wouldn't do it :).
The compiler generally issues a warning in that case. It doesn't block you
from doing it (since the standard merely says it's undefined rather than an
error), but alerts you in case you forgot to do somethine first.
The piece of code is only stated to be undefined under general standards. A
compiler doesn't complain because there is a chance that the variable may
be initialized somehow (but I doubt it). As a result, the only problems
you encounter will be at run-time (or in the case of old dos programs, a
"null pointer assignment" message on shutdown.)
Raymond Martineau wrote: The compiler generally issues a warning in that case. It doesn't block you from doing it (since the standard merely says it's undefined rather than an error), but alerts you in case you forgot to do somethine first.
The piece of code is only stated to be undefined under general standards. A compiler doesn't complain because there is a chance that the variable may be initialized somehow (but I doubt it). As a result, the only problems you encounter will be at run-time (or in the case of old dos programs, a "null pointer assignment" message on shutdown.)
Assignment of an integer to a pointer type is not allowed, unless some
"dirty" casting is used.
--
Ioannis Vranos http://www23.brinkster.com/noicys
Jonathan Turkanis posted: "JKop" <NU**@NULL.NULL> wrote: Jonathan Turkanis posted: > "JKop" <NU**@NULL.NULL> wrote : >> Since when does one need a teacher to learn C++?! >> >> I'm living proof of the contrary. > > I wouldn't stress that one example too much.
Any particular reason why?
I was trying to express what I thought was a pretty obvious point without being overtly rude. As is so often the case, I probably should have kept my mouth shut.
-JKop
Jonathan
Curious, that's all.
-JKop
Mike Wahler posted: "JKop" <NU**@NULL.NULL> wrote in message news:dz*******************@news.indigo.ie... > Given that you recently threw one on line fit because you couldn't > add an integer to a string and another because you couldn't return a > stream by value, I would say this proof is a little leaky.
Actually, don't you think that destroys your own argument? You've just expressed that at one time I didn't know how to append a number in digit form to a string, and that I didn't know why a stream could not be copied. Evidently, I posted enquiring about these, and now I know how. Emphasis on "now I know". Quit living in the past.
-JKop
On 10/23/2004 "JKop" <NU**@NULL.NULL> wrote in message news:D8*******************@news.indigo.ie... Hello!
I'm an expert C++ programmer.
-Mike
I presume that was to a Win32 newsgroup, no?
The term "expert" is relative. Outside of this newsgroup, I would definitely
say that I'm an expert C++ programmer, but if I were to say that right here
then it wouldn't have much weight as there's people here with superior
knowledge of C++ than me (in particular, of the Standard Library... it
really is about time I got a book on it!).
If we throw the Standard Library out of the window for the moment, then I
would be comfortable saying here that I'm an expert C++ programmer - I
pretty much understand and know how to use all of the features of C++.
Anyway Mike, thanks for clarifying whatever the hell you were trying to
clarify.
-JKop
Ioannis Vranos posted: Raymond Martineau wrote:
The compiler generally issues a warning in that case. It doesn't block you from doing it (since the standard merely says it's
undefined rather than an error), but alerts you in case you forgot to do somethine first.
The piece of code is only stated to be undefined under general standards. A compiler doesn't complain because there is a chance that the variable may be initialized somehow (but I doubt it). As a result, the only problems you encounter will be at run-time (or in
the case of old dos programs, a "null pointer assignment" message on shutdown.)
Assignment of an integer to a pointer type is not allowed, unless some "dirty" casting is used.
void* const address = reinterpret_cast<void* const>(666);
Not ttoooo dirty.
-JKop I actualy bought one and found that it had a number of really quite trivial mistakes ¬_¬.
Money to burn...
-JKop
On 2004-10-27 02:17:09 -0700, "Gernot Frisch" <Me@Privacy.net> said: "Catalin Pitis" <ca***********@iquestint.com.renameme> schrieb im Newsbeitrag news:2u*************@uni-berlin.de... "JKop" <NU**@NULL.NULL> wrote in message news:LR*******************@news.indigo.ie... Depends on the teacher. With a good teacher(s), you may learn faster and spend less time for digging in books, manuals and other materials. I missed that a lot. But I took care to guide other's study in the companies that I worked.
Definitely agree with you there! While having a teacher (for anything in life really) will make you learn faster, still there's no need for the teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
When you find it, tell me :). I'm curious.
Don't understand: Is there no book that tells you that it's illegal? I'm gonna write one. Title: "Dereferencing an uninitialized pointer is illegal".
Content: Dereferencing an uninitialized pointer is illegal. Example: int* p_k; *p_k=4; [1]
References: [1] JKob in comp.lang.c++, 27.10.2004
Am I gonna be rich? -Gernot
So, if I have a pointer to an int that's unitialized, how do I tell it
to point at a given int?
Joe Van Dyk posted: On 2004-10-27 02:17:09 -0700, "Gernot Frisch" <Me@Privacy.net> said:
"Catalin Pitis" <ca***********@iquestint.com.renameme> schrieb im Newsbeitrag news:2u*************@uni-berlin.de... "JKop" <NU**@NULL.NULL> wrote in message news:LR*******************@news.indigo.ie...
> Depends on the teacher. With a good teacher(s), you may learn > faster and spend less time for digging in books, manuals and other > materials. I missed that a lot. But I took care to guide other's > study in the companies that I worked.
Definitely agree with you there! While having a teacher (for anything in life really) will make you learn faster, still there's no need for the teacher. I've yet to find a book which has a good explanation on why:
int *p_k;
*p_k = 4;
is illegal.
When you find it, tell me :). I'm curious.
Don't understand: Is there no book that tells you that it's illegal? I'm gonna write one. Title: "Dereferencing an uninitialized pointer is illegal".
Content: Dereferencing an uninitialized pointer is illegal. Example: int* p_k; *p_k=4; [1]
References: [1] JKob in comp.lang.c++, 27.10.2004
Am I gonna be rich? -Gernot
So, if I have a pointer to an int that's unitialized, how do I tell it to point at a given int?
int* p_k;
int a = 1;
int b = 2;
int c = 3;
int d = 4;
p_k = &a;
*p_k = 4;
p_k = &b;
*p_k = 3;
p_k = &c;
*p_k = 2;
p_k = &d;
*p_k = 1;
-JKop
"Joe Van Dyk" <jo*******@no.spam.gmail.com> wrote in message
news:2004102716345516807%joevandyk@nospamgmailcom. .. On 2004-10-27 02:17:09 -0700, "Gernot Frisch" <Me@Privacy.net> said: So, if I have a pointer to an int that's unitialized, how do I tell it to point at a given int?
Two ways:
Point it at an existing variable:
int* p; // uninitialized
....
int a = 6; // stores 6 in variable a
....
p = &a; // now, p points to a, so *p == 6
or,
Create its own memory to point at, and assign a value to that
int* p; // uninitialized
....
p = new int; // create new storage for p to point to
....
*p = 9; // stores 9 in memory set aside for *p
....
delete p; // don't forget to delete when you new!
-Howard
(P.S., you could also set the value of *p in the new statement itself, with
p = new int(9);)
[snips]
On Wed, 27 Oct 2004 23:35:04 +0000, Joe Van Dyk wrote: So, if I have a pointer to an int that's unitialized, how do I tell it to point at a given int?
Assign it.
int *p; // uninitialized
int x;
*p = 3; // invalid, p hasn't been pointed at anything
p = &x; // perfectly good, points p at x
if ( *p ) // bad again, as x (aka *p) has no defined value
x = 3; // perfectly good
if (*p) // okay now, as x is initialized This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: python-help-bounces |
last post by:
Your message for python-help@python.org, the Python programming
language assistance line, has been received and is being delivered.
This automated response is sent to those of you new to...
|
by: |
last post by:
I have this question for homework in an intro perl class, I was hoping for some quick help on this please...here is the question
Using the Perl programming language, please prepare the following...
|
by: N3TB1N |
last post by:
Let me try again. I could use some help with this assignment, even
though my teacher does not grade assignments.but because I need to
know this stuff for a test very soon, but haven't been in...
|
by: Guy |
last post by:
If you are tired of trying to timely backup your project you should read
this message.
Relative Reversion is a new innovative product that will not only schedule
your backup sessions...
|
by: jane |
last post by:
like, my homework is due at 4:30 pm central time Nov 19, and this stupid
professor has no respect for my need to use my time elsewhere. He thinks
that if the braces are off, then there's something...
|
by: wandafoda |
last post by:
Sorry guys....another homework question and if you don't wanna help out..i understand.
just to say..im' a chemical engineer and we are required at will to do whatever...thast why i have to take C++...
|
by: Nep Tune |
last post by:
It goes like the following:
Use AdventureWorks database and HumanResources.Department table.
Create a stored procedure called spDepartmentAddUpdate. This procedure
accepts two parameters: Name,...
|
by: Tom |
last post by:
How do we get out of the browser infinite loop quicksand when we navigate
to web pages designed to lock us in and force us to hit the "pay me" button
(whatever they want to force you to do)?
...
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |