C and C++ Programming Languages

Author(s):  
Gerard O’Regan
Author(s):  
A. A. Nedbaylov

The calculations required in project activities for engineering students are commonly performed in electronic spreadsheets. Practice has shown that utilizing those calculations could prove to be quite difficult for students of other fields. One of the causes for such situation (as well as partly for problems observed during Java and C programming languages courses) lies in the lack of a streamlined distribution structure for both the source data and the end results. A solution could be found in utilizing a shared approach for information structuring in spreadsheet and software environment, called “the Book Method”, which takes into account the engineering psychology issues regarding the user friendliness of working with electronic information. This method can be applied at different levels in academic institutions and at teacher training courses.


2012 ◽  
Vol 9 (3) ◽  
pp. 1187-1202
Author(s):  
Zalán Szűgyi ◽  
Márk Török ◽  
Norbert Pataki ◽  
Tamás Kozsik

Nowadays, one of the most important challenges in programming is the efficient usage of multicore processors. All modern programming languages support multicore programming at native or library level. C++11, the next standard of the C++ programming language, also supports multithreading at a low level. In this paper we argue for some extensions of the C++ Standard Template Library based on the features of C++11. These extensions enhance the standard library to be more powerful in the multicore realm. Our approach is based on functors and lambda expressions, which are major extensions in the language. We contribute three case studies: how to efficiently compose functors in pipelines, how to evaluate boolean operators in parallel, and how to efficiently accumulate over associative functors.


This chapter presents the computer implementation of the tree-based genetic programming in C# programming language. Since C# is a common object-oriented programming language, with little modification the source code presented in the chapter can be easily transformed into Java or C++ programming languages. The chapter covers all aspects of the implementation: node, chromosome, population, function set, and terminal set class implementations. The chapter is carefully structured, so at the end of the chapter fully working GP computer program will be implemented which can solve regression and multiclass classification problems. The reader should not worry about specific operating system, or development environment, since all code implementations are based on cross-OS and open source integrated development environment visual studio code which can run on Windows, Mac, or Linux.


In the recent years there has been a tremendous growth in the field of engineering and sciences, which aided in the growth and development of fast and comfortable transportation media, with this development the number of automobiles have drastically increased, which for sure is a great technological achievement but sadly with this growth, the traffic and the hustle and bustle on roads is unstoppable and with it the number of accidents and road casualties have tremendously increased. But, there is no easy and practical way to reduce the usage of the automobiles. Every day the mankind read about thousands of people dying of road casualties and most of them die because the families or the concerned ones of the indulged people are not timely informed. The death casualties can be minimized to a great extent by just timely informing the families of the concerned ones. The prototype in this paper is an accident notification systemESP8266 NodeMCU and a simple vibration sensor is the heart of this system. The vibration sensor continuously senses the vibrations and on exceeding a predefined threshold limit, sends out a notification to registered numbers. In the past similar models have been proposed, which used costlier sensors such as Accelerometerbut the design in this paper, used simpler and cheaper sensor. Moreover, in earlier designs GSM technology was used but proposed design uses a Wi-Fi based controller, which in comparison to GSM technology is more reliable and fast. Also earlier GSM module needed an additional microcontroller such as Arduino but the use of NodeMCU eliminates the requirement of any additional controller. The prototype system in this paper makes the use of message queuing telemetry transport (MQTT) protocol, which is a very reliable and fast communication protocol which further uses subscribe and publish technology. The IoT cloud platform used in this prototype is Adafruit IO which is quite simpler when compared to other cloud platforms such as Losant Platform and moreover the data is updated every two seconds in Adafruit IO. For the notification purpose protocol is used with the help of IFTTT platform and ClickSend platform, Applets and Triggers are created to fulfill the requirement. The controller is programed using basic C and C++ programming languages and Arduino IDE serves as the programming environment, various library files have also been used for the programming purposes.


Sensors ◽  
2020 ◽  
Vol 20 (21) ◽  
pp. 6208
Author(s):  
Martin Holik ◽  
Tomas Horvath ◽  
Vaclav Oujezsky ◽  
Petr Munster ◽  
Adrian Tomasov ◽  
...  

This work is focused on creating an open-source software-based solution for monitoring traffic transmitted through gigabit passive optical network. In this case, the data are captured by the field-programmable gate array (FPGA) card and reassembled using parsing software from a passive optical network built on the International Telecommunication Unit telecommunication section (ITU-T) G.984 gigabit-capable passive optical network GPON recommendation. Then, the captured frames are converted by suitable software into GPON frames, which will be further processed for analysis. Due to the high transfer rate of GPON recommendations, the work describes the issue of writing to the Mongo database system. In order to achieve the best possible results and minimal loss of transmitted frames, a series of tests were performed. The proposed test scenarios are based on different database writing approaches and are implemented in the Python and C# programming languages. Based on our results, it has been shown that the high processing speed is too high for Python processing. Critical operations must be implemented in the C# programming language. Due to rapid application development, Python can only be used for noncritical time-consuming data processing operations.


Author(s):  
Andrey Stolyarov ◽  

The book is aimed at people who learn programming on their own; it considers a wide range of issues, including introductory information, basic concepts and techniques of programming, the capabilities of the operating system kernel and the principles of its functioning, programming paradigms. It is supposed to use operating systems of the Unix family (including Linux) as an end-to-end working and training environment; a number of programming languages are considered: Pascal, assembly language (NASM), C, C++, Lisp, Scheme, Prolog, Hope and Tcl. The book includes information about the most important Unix system calls, including those for communication over computer networks; an introducton to the ncurses, FLTK and Tcl/Tk libraries is also given. The second volume ("Systems and Networks") starts with the fourth part, devoted to the C programming language; it also includes parts about basic Unix programming (input/output, process manipulation etc.); computer networking; parallel programming and dealing with shared data; basics of kernel internals.


Author(s):  
Alaeeddine Yassine ◽  
Driss Chenouni ◽  
Mohammed Berrada ◽  
Ahmed Tahiri

This paper conducts a study to identify pedagogical approaches and gameplay techniques involved in the development of serious games for teaching scientific courses in general especially programming languages. The concept of serious games is increasingly popular and is considered as an innovative teaching practice since it is based on information and communication technology and gamification to foster learning. To this end, a serious game "Perobo" will be introduced and discussed. It is based on a set of gameplay techniques and pedagogical approaches used for teaching pointers, considered as a difficult concept in C programming language, and essential for programming complex and advanced programs. The game is also based on a taxonomy design to define the learning levels.


Author(s):  
Fauziah Fauziah ◽  
Andez Apriansyah ◽  
Tri Ichsan Saputra ◽  
Yunan Fauzi Wijaya

In compilation techniques, the processes and stages carried out relate to translating source languages into target languages (object programs). Source languages are high-level programming languages that are easy to understand and easy to learn by humans, while target languages are low-level languages that are only understood by machines. In this study a compiler machine called Automatic LESSIMIC Analyzer is used which can be used to analyze, including lexical, syntactic, and semantic analysis. Compiler machines that are designed can also synthesize intermediate code, using assembler codes. The compiler engine will produce an analysis of the program code that the user enters in the form of an error message, if the program code is not in accordance with the grammar that applies generally in programming languages. In this research, the simple program code that is inputted is C ++ programming language, and successfully analyzes the lexical, semantic, syntactic, intermediate code generation and successfully detects errors from the program code entered with a success rate of 99%.


2021 ◽  
Vol 6 (166) ◽  
pp. 8-14
Author(s):  
O. Zarytskyi ◽  
M. Bulaienko

The purpose of the article is development of the issue of increasing the efficiency of the automation and visu-alization procedure for creating documentation based on the use of XML-files, which, unlike existing ones, simpli-fies data exchange and presentation, which allows to automate document flow while maintaining accurate data description. Stationary or portable technical devices in which information is stored in XML files are usually used as visu-alization tools. Such files are used to exchange information between the decision maker, users and spatially dis-tributed systems and are called exchange. The XML format significantly minimizes the amount of memory on the media, in this format, any tags are created that are analogous to the fields in the table. The XML exchange file is also one of the tools for filling the cartographic basis of the urban cadastre and cadastres of other natural re-sources. The study improved the method of monitoring regional resources, based on the methodology of parallel cal-culations, which, in contrast to existing ones, can be used to process large amounts of spatially distributed infor-mation, which improves the monitoring system of regional resources in processing complex structured requests and too many spatial objects. Thus, the control, classification, coding and reliability of information with the re-production of missing data by verification, conversion and validation of archival or new spatially distributed information. All developed models, methods and software and hardware for building regional resources monitoring have been brought to the level of engineering methods, algorithms and software tools for computer implementation. Methods and algorithms are implemented using Digitals, FastReport software and C # programming languages. The approbation of the developed technology is carried out on the example of separate parts of the Kharkiv city and the village of Kotlyary territories.


Sign in / Sign up

Export Citation Format

Share Document