+17

Should i trust my teacher

My computer science litterallly sad : In c++ if we want refer to the first element of the array we write arr[1]. I'm confused. Didn't it start from 0. I mean, that's what i learned here.

c++

3/21/2020 6:31:39 AM

Andrei I

69 Answers

New Answer

+38

Andrei I A lot will depend on how experienced your teacher is in writing software. It's likely many teachers aren't going to be as proficient or experienced with programming compared to those working professionally full time. There's a massive difference in the experience gained between constantly doing vs teaching a curriculum. Personally, if I ever switched to teaching, I couldn't imagine making this sort of mistake. It's quite basic. The bigger lesson to learn here is to not blindly trust anything. Or rather, trust, but verify. 😉 This especially applies to information posted in internet articles.

+27

I once got kicked out of class for correcting a teacher in front of everyone so I would advice you to correct her in privately (without being harsh) because we all make mistakes

+19

Yes it happens. You can clarify that with your teacher. Some teachers don't remember. And what's more? Sometimes they don't even listen. My teacher once said that firewall is hardware. Our class had clarified that doubt and teacher had agreed. So try talking about this with your teacher.

+13

Maybe she is refering a[0] as the zeroth element of the array. If we go with this convention then first element will be a[1]. Just clarify it with your teacher.

+13

Anyway i decided an year ago that the computer science teached in school is bad and i wanna be mostly self though . If i learned only what my school teached me until now i would know just 20% of what i know now about programming

+11

It depends on the characteristic of a teacher. Can you talk privately with the teacher? if so then ask and confirm - whether or not teacher was mistaken. If a computer was available, you may demonstrate the fact. Teachers are humans too, they can make mistakes too, reasons can vary. If teacher was wise (I would expect one to be), then teacher will do something to fix the mistake. A good teacher prefers to admit a mistake than to make defence while letting the students leave with the mistake. But DO NOT forget manners. Although teachers make mistakes, still, treat them with respect. Correction doesn't need to come in harsh way, and is best delivered in private (no humiliation justified). Answer to the question whether you can trust your teacher *might* come post the private discussion. Anyways, this looks off-topic, and may harvest opinionated responses. By the guidelines below, we all are required to use feeds post instead. Hope you understand 👍 https://www.sololearn.com/Discuss/1316935/?ref=app

+9

School system is a scam we are always paying in school for nothing I am ACCA student and think I nothing learn from school Also here on solo learn I meet many people they learning coding from internet they even don't go in school.. School system is too old for now ...

+8

One best way to make your way out, is to test the codes by yourself. And about your teacher you can as well tell him/her about his/her mistake, just show him the code.

+8

Hi everyone teacher is human being and may error. Learn to share and get error rectified 🤗

+8

To be honest I've learnt a lot more from the internet than I have from school I think that school should focus more on teaching students how to learn quicker and more effectively because you can almost find anything on the internet. And I also think they should teach students to be creative and to think critically I know this kinda sounds weird but they need to teach students how to learn. I mean we live in the 21st century almost everything has advanced except for the school system I think it needs some improvement

+8

HotEGirl This is not right place and do something better. People will automatically follow you. Just because of your name people will not.

+7

Array indices starts from 0. Andrei I Check this code in code playground : #include <iostream> using namespace std; int main() { int a[]={1,2,3,4,5}; for(int i=0;i<5;i++) //starts from 0 to 4 indices cout<<a[i]<<" "; //prints 1 2 3 4 5 cout<<endl; for(int i=1;i<5;i++) //starting from 1 to 4 8 index cout<<a[i]<<" "; //prints 2 3 4 5 only. Missing 1 return 0; }

+7

+7

Well, i can't ask him now because the schools got closed down because of coronavirus so probably the next time i'm gonna see my teacher will be after easter so i'll wait

+7

90% teachers hates me i dont know why i even dont rember how many time im kicked out from classes i dont care now i dont attend 😊

+6

Arsenic no he dosen't. He sad:[1, 5 ,3 , 4] arr[1]=1,arr[2]=5....

+6

Andrei I You know the fact about it. May be your teacher's primary subject is not computers.. Or may be not given attention more on that on that time. Any ways, if possible, Try to convey by example with your teacher in a good manner..

+6

That's true. Schools generally don't teach true programming. They only teach the basics. Like for example, they will only teach HTML for web designing. But what's really important is to learn JavaScript and CSS for web designing.

+6

It's seems like simple human mistake. Professors do them sometimes, they are also human beings.

+6

Olivia Yeah, i agree, the system should teach people how to be creative and to make people want to learn and that's the opposite of what it does. It feels like it's a tutorial on how to hate school. If i was in power i wold make a lot of changes