Accelerated C++ by Andrew Koenigconsider one easy book to understand c++
object oriented programming ne buhat buri ki ha
1st semester mei C pari ha isliye idea ha
2nd semester mei ab OOP ha us ki bilkul nai samaj arahi
Accelerated C++ by Andrew Koenigconsider one easy book to understand c++
object oriented programming ne buhat buri ki ha
1st semester mei C pari ha isliye idea ha
2nd semester mei ab OOP ha us ki bilkul nai samaj arahi
what is the thing you cant understand in OOP?consider one easy book to understand c++
object oriented programming ne buhat buri ki ha
1st semester mei C pari ha isliye idea ha
2nd semester mei ab OOP ha us ki bilkul nai samaj arahi
shallow copy deep copywhat is the thing you cant understand in OOP?
classes ?, constructors? inheritance? or what?
Who's teaching you?shallow copy deep copy
move constructor
operator overloading
teacher ajeeb tareeke se parha raha ha kuch samaj nai aati
well operator overloading asan he its just a set that you have to write instructions in it and when you call that operator , the instructions will be processed ,shallow copy deep copy
move constructor
operator overloading
teacher ajeeb tareeke se parha raha ha kuch samaj nai aati
Lmao xD This happens so often I usually turn around and watch their faces while my sir teaches and they are like .. (wtf)PS : if the whole class remains silent while the lecture of programming is ka mtlb he kisi ko kuch smjh ni aa rhi :crazy:
Our theory teacher is so far good but the lady teacher who is taking over lab sucks a lot "student ask miss why are we adding headers file and what the hack is written between the brackets she just like " bus yeah he hota hae ap yad karlain" koi basic concept nae dia :SLmao xD This happens so often I usually turn around and watch their faces while my sir teaches and they are like .. (wtf)
hahah same here , hamary b yahi hota he and girls tu aisay bethi hoti hien jesay altaf bhai ka telephonic khatab sun rahi hon (lmao)Lmao xD This happens so often I usually turn around and watch their faces while my sir teaches and they are like .. (wtf)
Our theory teacher is so far good but the lady teacher who is taking over lab sucks a lot "student ask miss why are we adding headers file and what the hack is written between the brackets she just like " bus yeah he hota hae ap yad karlain" koi basic concept nae dia :S
Yup first semester but our teacher is retard...............hahah same here , hamary b yahi hota he and girls tu aisay bethi hoti hien jesay altaf bhai ka telephonic khatab sun rahi hon (lmao)
lol what semester you are in? and 2nd what uni you are inr? :lol:
lol i know hamary idhar calculus ki teachers b aisa hi behave karti hien , students say teacher ye kiasy, "bus ye math ka rule he karna he tu karo ni tu fail ho jana" (lmao)
but about header i think you are in first semester so thats why she didnt say anything or may be she is not a good teacher jisko headers ka ni pata , bcz its one of the simplest things of programming lel
ok just for knowledge maybe you know it already but , headers are the files in which all the instructions are already written by the developers , like c++ me trigonometric functions hien na sin cos tan etc , so when we write sin(x); in code then humien isko process karny k liay math ki header file dalni parti he , other we have to write the complete code of finding the value of sin in the program by ourselves , thats why we use boost n libraries like them often in our coding ,Yup first semester but our teacher is retard...............
The sooner one learns that the better :crazy: Unis don't go beyond management systems unless your course teacher is really good.what i have learnt so far is that the Universities does not teach you everything about Programming, you have to learn it at your own...!!
Dat revelation. I self-taught myself programming and I'm surprised at the amount of programming they actually teach. Way less than I expected. There are teachers who actually cover a lot of topics, but I observed how many people had no underlying idea of why this concept is necessary, its constraints, what it needs etc. People would show me their code, and I would point immediately point out a very simple mistake, and they'd go "How on earth was I supposed to know that?"what i have learnt so far is that the Universities does not teach you everything about Programming, you have to learn it at your own...!!
humine pata he k hamary teacher ne wohi karvana he jo stupid contents hien , but we tease our teacher sir ye kia chez he sir ye program me phass giya hon zara help kar dien :crazy: teacher acha ho tu karva deta he khud b na ata ho tu kheta he k ap is level pe ya kam na karo chkara jao ge (lmao)The sooner one learns that the better :crazy: Unis don't go beyond management systems unless your course teacher is really good.
exactly , thats why i completed 2 programming courses on coursera and i noticed hell difference of study and after that i trust on these free learning courses , unis are just for degreesDat revelation. I self-taught myself programming and I'm surprised at the amount of programming they actually teach. Way less than I expected.
Haha I know how annoying that is, I've since somewhat taught them how to use the debugger to fix their mistakes so traffic is low now :crazy:Well, code is kinda personal. You can invite a PhD programmer, or even Donald Knuth to find what's wrong with someone's code and it's pretty damn difficult. What makes sense to you, doesn't make sense for others. Sometimes some of my friends would just show me 800 lines of code and simply tell me "Yaar ye code naheen chal raha, theek ker do".
And this is the most annoying thing anyone can say to me programming-wise. They just tell to do their work for them. I can fix syntax errors easily. Beyond that, they still ask me to fix their logic errors. I've now learnt to give them the hand. The point is, you shouldn't directly ask a teacher "Sir, ye naheen chal raha, theek ker dein". If he can't, it doesn't mean he sucks, it's just he can't understand how YOU think.
BTW, you were in NUST, right? Who's teaching you?
well operator overloading asan he its just a set that you have to write instructions in it and when you call that operator , the instructions will be processed ,
like function ko name se call karo and operator ko sign se
but about constructors you have to read and understand everything about it , get any OOP book ,you got the default copy constructor completely ? but you need someone near you to teach you while being relaxed, you may ask from any of your classfellows if they can help you , or you can meet your teacher in free time ,
and arent you able to ask questions from the teacher?
PS : if the whole class remains silent while the lecture of programming is ka mtlb he kisi ko kuch smjh ni aa rhi :crazy:
AAMIR SHAFIWho's teaching you?
Basically, this is all low-level power of C++. Pointers and stuff. Other languages won't have that. If you have objects that have pointers as its member variables e.g.
class someObject { int* aPointer; }
someObject A, B;
A = B;
By default, C++ simply equals them both, so it'd be int* = int*
Now, int* is different from int. int is a number, int* is an address. So if the B.aPointer was say 0xPOTATO, it will just assign 0xPOTATO to A.aPointer. It doesn't really care what the type was. It will just straight on assign whatever it has. 0xPOTATO maybe 1,2,3,4,.. etc but it doesn't really care. All that matters is that you change the pointer to point to 0xPOTATO.
This is called shallow copy.
If you were to write your own constructor, which would go 0xPOTATO and take the value inside and THEN assign it to A.aPointer. This is deep copy. You're dealing with numbers here, not addresses.
AAMIR SHAFIWho's teaching you?
Basically, this is all low-level power of C++. Pointers and stuff. Other languages won't have that. If you have objects that have pointers as its member variables e.g.
class someObject { int* aPointer; }
someObject A, B;
A = B;
By default, C++ simply equals them both, so it'd be int* = int*
Now, int* is different from int. int is a number, int* is an address. So if the B.aPointer was say 0xPOTATO, it will just assign 0xPOTATO to A.aPointer. It doesn't really care what the type was. It will just straight on assign whatever it has. 0xPOTATO maybe 1,2,3,4,.. etc but it doesn't really care. All that matters is that you change the pointer to point to 0xPOTATO.
This is called shallow copy.
If you were to write your own constructor, which would go 0xPOTATO and take the value inside and THEN assign it to A.aPointer. This is deep copy. You're dealing with numbers here, not addresses.
the teacher always says any question and we all are like poochien tu poochien kya kuch bi tu samaj nai araha
- - - Updated - - -
AAMIR SHAFI
so here is one question aik dynamic memory allocation hum class mei karte hain us ke andar hum data store karte hain ab us ki hum ne deep copy banani ha ke sari cheezien copy hon
including data woh kaise hoga?
- - - Updated - - -
AAMIR SHAFI
so here is one question aik dynamic memory allocation hum class mei karte hain us ke andar hum data store karte hain ab us ki hum ne deep copy banani ha ke sari cheezien copy hon
including data woh kaise hoga?
- - - Updated - - -
Plus any suggestions which onliine free course one can take to increase the programming skills particularly for C++
secondly can i manage extra work on programming by taking these online courses in this tedious semester routine?
170 + countries where Steam sells but PSN doesn't will lose access unless they use VPNfaraany3k said:I have heard that it is now unplayable in countries which do not support handful of third world countries not recognized by Sony like Pakistan. Steam is a true global platform.Then they cry that console gaming is dying.
You reap what you sow. This is what happens when you take away choice from consumers. Even with 88% split going to developers, they can't recoup costs. Meanwhile, Helldivers 2 is a massive hit for Sony thanks in big part to Steam.iampasha said:Alan wake 2 is yet to recover it's development costs. Due to no physical release and no steam launch.