+ 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.

21st Mar 2020, 6:31 AM
Andrei I
Andrei I - avatar
68 Answers
+ 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.
21st Mar 2020, 7:54 AM
David Carroll
David Carroll - avatar
+ 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
21st Mar 2020, 7:17 PM
Lucky
Lucky - avatar
+ 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.
21st Mar 2020, 7:00 AM
Taranjeet
Taranjeet - avatar
+ 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.
21st Mar 2020, 7:22 AM
Arsenic
Arsenic - avatar
+ 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
21st Mar 2020, 8:11 AM
Andrei I
Andrei I - avatar
+ 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
21st Mar 2020, 7:27 AM
Ipang
+ 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 ...
22nd Mar 2020, 6:37 AM
Olivia Mikayla
Olivia Mikayla - avatar
+ 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.
21st Mar 2020, 8:41 PM
ugochukwu Joseph
ugochukwu Joseph - avatar
+ 8
Hi everyone teacher is human being and may error. Learn to share and get error rectified 🤗
22nd Mar 2020, 7:03 AM
Muhammad Sohail Ahmad
Muhammad Sohail Ahmad - avatar
+ 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
22nd Mar 2020, 8:16 AM
Lucky
Lucky - avatar
+ 8
HotEGirl This is not right place and do something better. People will automatically follow you. Just because of your name people will not.
22nd Mar 2020, 3:34 PM
A͢J
A͢J - avatar
+ 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; }
21st Mar 2020, 6:33 AM
Jayakrishna 🇮🇳
+ 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
21st Mar 2020, 9:07 PM
Andrei I
Andrei I - avatar
+ 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 😊
22nd Mar 2020, 6:31 AM
Najmuddin Ansari
Najmuddin Ansari - avatar
+ 6
Arsenic no he dosen't. He sad:[1, 5 ,3 , 4] arr[1]=1,arr[2]=5....
21st Mar 2020, 7:41 AM
Andrei I
Andrei I - avatar
+ 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..
21st Mar 2020, 7:53 AM
Jayakrishna 🇮🇳
+ 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.
21st Mar 2020, 8:22 AM
Taranjeet
Taranjeet - avatar
+ 6
It's seems like simple human mistake. Professors do them sometimes, they are also human beings.
21st Mar 2020, 2:00 PM
Vladyslav Semeniuk 🐸
Vladyslav Semeniuk 🐸 - avatar
+ 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
22nd Mar 2020, 7:12 AM
Andrei I
Andrei I - avatar
+ 6
Andrei I you are right we are spending billion of dollars for learning in school It's not make any sense That things we learn from YouTube If you want to be a doctor than school for you . Otherwise it's not
22nd Mar 2020, 7:27 AM
Olivia Mikayla
Olivia Mikayla - avatar