welcome - library.nu C++Interview Questions and Answers What is C++? Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype known as a class (you will learn more about these later) - to allow object-oriented programming. C++ used for: C++ is a powerful general-purpose programming language. What is the difference between realloc() and free()? The free subroutine frees a block of memory previously allocated by the malloc subroutine. What is the difference between declaration and definition? The declaration tells the compiler that at some later point we plan to present the definition of this declaration. How do you write a function that can reverse a linked-list? for(; curnext! curnext->next = cur; } } Write a program that ask for user input from 5 to 9 then calculate the average
11 Great YouTube Channels for Teachers September 11, 2014 YouTube is undoubtedly one of the most popular video hosting platforms in history. The stats released by its administration a few months ago are just mind blowing. With more than 1 billion monthly visitors and over 6 billion hours of video being watched each month (which equals almost an hour for every person on Earth) and an average of 100 hours of video uploaded every minute, YouTube sets a record of being the first audio visual media with the largest reach ever. As such, YouTube is definitely a treasure trove for us in education. 1- Crash Course In this channel, teachers John and Hank Green provide some excellent video explanations and tutorials on a variety of topics related to World History, Biology, Literature, Ecology, Chemistry, and US History. 2- TED Ed You are probably already familiar with this channel. 3- Shots of Awe 4- Asap Science Asap Science is a Youtube channel dedicated for everything related to science and scientific concepts. 5- SciShow 6- Keith Hughes
A Great New Tool to Teach Kids Coding September 23, 2014 Code Studio is a newly released platform geared towards helping students from kindergarten to high school learn the different coding concepts. Code Studio which is a product of the popular nonprofit group Code.org known for its relentless efforts to make coding part of the curricula. Code Studio, as is explained in this excellent review, provides a variety of features that set it apart from other coding platforms. Most important of them all is its integration of HTML5 which makes it accessible through different browsers. Code Studio also provide coding lessons tailored for each age group and grade level. By completing these lessons, students are expected to be able to create their own games and apps to share with others using popular social networking sites. Watch this video to learn more
Teach yourself to program We are entering the summer, the perfect time to improve yourself, you could go running or swimming, you could learn a new foreign language or perhaps you could learn to program. Self-learning is not as hard as it sounds, and it’s much easier than self-learning Spanish or French. There are really wonderful sources to start learning these new languages, understanding the concept behind programming and giving it a try with some interesting problems. Basic Programming Via XKCD To learn a new programming language, it’s much easier if you already know the concepts because you can start learning the new structures in no time. Programming Concepts : This is a brief tutorial for new programmers from the City University of New York. Learning a Language Whether you already know some programming languages or you are moving forward, you should choose a language to work with. Learning HTML Via Cyanide and Happiness HTML is quite a simple language that doesn't use variables or operations. Learning Python
Print Friendly & PDF Introduction - 1024cores I bet you had heard terms like "lockfree" and "waitfree". So what it's all about? Let's start with some definitions. Wait-freedom Wait-freedom means that each thread moves forward regardless of external factors like contention from other threads, other thread blocking. Below is an example of a wait-free algorithm: void increment_reference_counter(rc_base* obj) atomic_increment(obj->rc); void decrement_reference_counter(rc_base* obj) if (0 == atomic_decrement(obj->rc)) delete obj; Each thread is able to execute the function in a bounded number of steps regardless of any external factors. Lock-freedom Lock-freedom means that a system as a whole moves forward regardless of anything. An example of a lockfree algorithm is: void stack_push(stack* s, node* n) node* head; do head = s->head; n->next = head; while ( ! As can be seen, a thread can "whirl" in the cycle theoretically infinitely. Obstruction-freedom Termination-safety Blocking Algorithms Practical Implications 1. 2. 3. Performance/scalability
197 Educational YouTube Channels You Should Know About 197 Educational YouTube Channels You Should Know About If you don’t have a YouTube channel as an education provider, there’s a good chance you’re behind the times. Nearly every major educational institution in the world now hosts its own collection of videos featuring news, lectures, tutorials, and open courseware. Just as many individuals have their own channel, curating their expertise in a series of broadcasted lessons. These channels allow instructors to share information and blend media in unprecedented and exciting new ways. From teaching Mandarin Chinese to busting myths about Astronomy, the educational possibilities are virtually endless pun intended! Because we can now sift through thousands of resources while navigating a single repository, the potential for inspiration and growth in the field of education has reached a new height. Here are the top channels worth following based on views, subscriptions, and quality of content: General Physical Sciences Engineering & Technology Mr.
9 Websites to Learn Coding As Compiled by TED May 15, 2014 Learning how to code has become an essential skill for the 21st century students. The importance of coding lies in the fact that it enables students to learn a slew of other important skills all along the way. In his popular TED talk " Let's Teach Kids to Code", Mitch Resnick of MIT Media Lab outlined a set of skills that students get to learn from coding . These skills are also relevant for all other sorts of activities: Code Racer that is featured in TED article has become Treehouse which brings the number of websites to 9. 1- Code Academy This by far the most popular of them all. 2- Girl Develop It One of many programs geared toward females who want to code, Girl Develop It is an international nonprofit that provides mentorship and instruction. 3- Udacity Computer Science Course ( not free) Stanford University’s Udacity is one of many sites that make college courses—including Introduction to Computer Science—available online for free. 4- Teamtreehouse 5-The Computer Club House