C++ programming Definition and 95 Threads

  1. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 48: Type casting and cast operators Part II

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 48: Type casting and cast operators Part II

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  2. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 49: Type casting and cast operators Part III

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 49: Type casting and cast operators Part III

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  3. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 50: Multiple Inheritance

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 50: Multiple Inheritance

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  4. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 51: Multiple Inheritance (Contd.)

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 51: Multiple Inheritance (Contd.)

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  5. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 52: Exceptions (Error Handling in C) Part I

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 52: Exceptions (Error Handling in C) Part I

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  6. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 53: Exceptions (Error Handling in C) Part II

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 53: Exceptions (Error Handling in C) Part II

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  7. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 54: Template (Function Template) Part I

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 54: Template (Function Template) Part I

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  8. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 55: Template (Function Template) Part II

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 55: Template (Function Template) Part II

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  9. Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 56: Closing Comments

    Programming in C++ with Prof. Partha Das (NPTEL):- Lecture 56: Closing Comments

    Copyright reserved to Prof. Partha Pratim Das and NPTEL, Govt. of India. Course website: http://www.nptel.ac.in/syllabus/syllabus.php?subjectId=106105151 Course Lectures: http://www.nptel.ac.in/courses/106105151/1
  10. B

    Comp Sci [C++] Schrodinger equation solver and nuclear density

    Hi everybody! I need to compute a C++ program for solve Schrodinger equation and calculate nuclear density. My nucleus is made up of only neutrons immersed in a potential of a harmonic oscillator. Schrodinger equation is: $$[-\frac{\hbar^2}{2m}\triangledown^2+V_{HO}(r)]\psi=E\psi$$ with...
  11. Chromatic_Universe

    C/C++ Need Help with Monte Carlo Algorithms in C++?

    I would like to discuss code for hit and miss monte carlo methods, and also monte carlo with veto algorithm in C++. Since I am coding in C++ after a long time, I am messed up with syntax too. I have a specific set of problems to work with. If interested we can start working on it here.
  12. M

    Library that supports multidimensional Arrays

    I'm am looking for a C++ library that supports high-dimensional arrays ( 3=< ) and element-wise calculations. Is there such a thing?
  13. The_Inventor

    C/C++ Creating a simple password program in C++

    So I'm trying to teach myself C++ programming and I'm having trouble writing a password program. Essentially I want to program to ask the user to input a password, and then compare that input with the correct password. If the user input matches the password I want the program to output a message...
  14. N

    Why the data does not print out with eclipse in unbuntu?

    Dear group, I am using Eclipse in the Ubuntu operation system and trying to print out this data from the begin to the string "END OF HEADER" but I do not understand why it did not give me the one as I expected. I also used this file "albe0320_1.17n" to test and it worked, but the file that I...
  15. AHashemi

    C/C++ Optimize C++ to use for computational physics?

    Hi I'm studying 2nd year for a bachelor's degree in physics and I'm interested in programming (Beginner C++ programmer). I have already done simulations like harmonic motions, Ising model etc but I know this can go further and I need help with that. I use Ubuntu for programming with c++. (GCC...
  16. N

    C/C++ How to get data from text file in C++?

    Hi Group, I am trying to get data from text file, I hope someone can suggest me how to do? I also have this code which can read data, but i do not know how to scan every single line to get any information I want. Please help, Thank you very much. Here is my code: #include <iostream>...
  17. N

    C/C++ How to read a list of USB from C++ in ubuntu OS?

    I am trying to use C++ (eclipse in Ubuntu OS) to read USB connection. Usually, on the terminal window, I can use command "lsusb" to see the list. Now, I want to do the same way with C++. can anyone help? Thank you very much.
  18. Hughng

    Comp Sci Difference between two dates C++

    Homework Statement I am trying to solve a problem that asks me to give the total days between two dates. I have to take care of the some matters between those two dates such as leap years and the way of inputting the years by the users. (For example, if you input 1 and 17, the code will still...
  19. Hughng

    Comp Sci Unmash a string in C++ using recursion

    Homework Statement MUST USE RECURSION TO SOLVE THESE PARTS. Part A: Have a user input a string. Then display this string smashed up as follows: display the first character in the string, then the last, then the second, then the second to last, then the third... So if the string is “abcdef”, it...
  20. sukalp

    C/C++ Question about learning C++ Linked Lists before Stacks....

    i wanted to ask you that in c++it is important we should learn linked list before learning stack,queue that i wanted to know while studying data structures
  21. sukalp

    Environment understanding problem

    well i wanted to ask you what is cmd,jdk,. why do we need to install jdk in java why not directly we cannot install ide of java directly like we download codeblock for c++ directly but in java we download jdk then we download net beans environment confusing
  22. sukalp

    Engineering Are There Co-op Jobs for High School Students in Computer Engineering?

    I wanted to ask you when we finish high school and go to university for studying bachelor of technology in computer science are there jobs that high school students do regarding programming with companies through programming they have learn in ap courses in grade 12 that i wanted to know
  23. sukalp

    C/C++ C++ Stack and Queue Tutorial for Beginners

    is there any tutorial which covers stack and queue in c++. i am not able to understand it is getting difficult for me .
  24. sukalp

    C/C++ Introduction to Data Structures in C++

    In C++ we have 2 types of data structures :- 1)simple data structure so array and structure come in simple data structure group 2)compound data structure so stack,queue,link list,tree come in compound data structure group. In Indian board CBSE data structure linked list is not included it is...
  25. sukalp

    C/C++ Studying C++ programming topics

    I wanted to know in c++ when we learn advance c++ like class,constructors,inheritance,data file handling we should know how to implement a class ? in c++ before studying these topics?
  26. MAKK

    MATLAB How to Convert Matlab Gaussian Cone Code to C++?

    anyone help me to convert this sample code of Gaussian Cone shape of random number code in Matlab into C++ function GaussianCone clear all; clc; mx=10000; my=mx; mz=mx; z=[1:1:mz]'; sigma=0.01; R=0.5; mu=0; sigmax=sigma+R*z; sigmay=sigma+R*z; x=zeros(mx,1)...
  27. Fabio Kopp

    How to obtain a function from gsl library integration?

    I am having some problems to use the gsl library. I do the integration via monte carlo and I have obtained the right result, but a need to know how to use this result when I have a dependence on another variable. For example, f(x,y)=x*y, but the integration is only on x. Because I want to...
  28. I

    C/C++ How can we print odd numbers up to 99 using nested for loops in C++?

    I have my final exam for C++ tomorrow. I was studying a previous exam and I came across a certain problem that I would like to know how to do. Suppose that we want to print out the following on the screen, please complete the code segment below by filling in the blanks 1 1 3 1 3 5 ... ... 1 3 5...
  29. P

    C/C++ C++ Programming Problem: Adding Streams to a Pre-Existing Code

    I have been given a project to modify my pre-existing code to satisfy these guidelines: - Create a file called "sides.txt" and put it in the same folder as your program. - The file contains multiple lines with each line having the three sides, separated by white spaces, e.g., 3 4 5 6 8 10 5...
  30. I

    C/C++ How can a C++ function return two values to the caller without using a class?

    I was given this problem a while ago to complete as a bonus but I wasn't able to do it. I just came across it and would like to know how it should be done. Given an integer vector "vi" that is already sorted in ascending order (all elements of the vector are positive), write a function that...
  31. S

    C/C++ C++ programming on prime numbers

    this is the program which i wrote: #include<iostream.h> #include<conio.h> #include<stdlib.h> void prime(int p) { if(p==0||p==1) { cout<<"neither prime nor composite"<<endl; getch(); exit(1); } for(int i=2;i<p/2;i++) { if(p%i==0) { cout<<"composite"<<endl; break; } else...
  32. mishima

    Learning c++ programming through physics?

    I was wondering some things I could try to increase my skill in programming using physics problems. I'm not interested in a physics engine or anything super advanced like that, just some fun programming projects (ie the physics makes it fun, for me). I would say I'm still a beginner in C++...
  33. A

    C/C++ How to Handle an Infinite Loop in C/C++ Code?

    Hello there! I typed this code and saved it as a .c file #include<stdio.h> #include<stdlib.h> #include<conio.h> int main() { int a; while(1) { if (kbhit()) { system("cls"); printf("%d...
  34. I like Serena

    The C++ Programming Language by Bjarne Stroustrup

    Author: Bjarne Stroustrup Title: The C++ Programming Language Amazon Link: https://www.amazon.com/dp/0201700735/?tag=pfamazon01-20 Prerequisities: Contents:
  35. K

    Comp Sci Problem with getline in C++ programming

    Homework Statement I am solving a problem in which I am reading numbers from cells in a csv file, I used getline to get strings from the csv file then converted the string to an integer... but the getline seemingly discards the last cell in the csv file Homework Equations this my C++...
  36. W

    Which Edition of C++ Primer is Best for Particle Physicists?

    Hello I'm asking for a textbook in C++ programming language for Particle Physicists
  37. M

    Comp Sci Where to save .dat file for C++ programming

    Homework Statement I'm starting my C++ project which requires me to call a file stream and output the data to four other output streams. Before I start, I want to know if I need to have a .dat file premade and saved somewhere so I can call it or do I just make that file in my code by using...
  38. J

    Comp Sci C++ programming, Newtons Method.

    Having a lot of trouble the my C++ course, loops especially. This is the assignment giving me trouble The function you are to implement finds a root of the given function eff(x) using Newton's method. The given version of eff(x) implements f(x) = x2e-x-2 (where e is the base of the natual...
  39. I like Serena

    C/C++ Why are the C++ programming standards so inconsistent?

    It's a pity that the various coding standards that I have seen are inconsistent as to when to use #include "file_spec" or #include <file_spec>. The "High Integrity C++ Coding Standard" says: High Integrity CPP Rule 14.9: Use <> brackets for system and standard library headers. Use ""...
  40. R

    C/C++ Recommend books on Python/ C++ Programming

    idk if some of you remember Recommend a book on Python Programming thread i created a while back. As some of you suggested, i bought Lutz's book. I've looked into (or at least skimmed through) most of the book...i really liked it. I'm currently working on GUI Tkinter, it seems interesting...
  41. T

    Comp Sci Borland C++ programming quistion, what's wrong with my program

    This program is supposed to add 2 integers ,according to the compiler, there are 2 warnings and 1 error ,the error is (undefined symbol' end') the warnings are 'sum' and 'y' are declared but never used here is the program : # include <iostream> # include <conio.h> intmain() { int x; int...
  42. L

    C/C++ C++ programming and electrical engineering

    Is C++ programming used in electrical engineering work, it really doesn't seem as though it would be,but what could it be useful for, some kind of possible scenario ? (E.E. encorporates the use of electricity to make things happen mainly, whereas C++ has to do with computer design)
  43. T

    C/C++ Learning C++ Programming for TI Basic Users

    i have made programs on my TI83+ than i bought a TI89+ Titanium but i have never programed in C++ or any other programming language. so could anyone tell me about how to program in C++ and the key differences between C++ and TI basic? if anyone wnats my programs contact me with youe E-mail and i...
  44. A

    C/C++ Need Help Downloading Free C++ Programming Software

    hello everone there, sorry to bother you just wanted to ask, if anyone could help me where to download free c++ programming software. please please let me knw if anyone know it i will be very apriciated for that. u can reaply me on this add: talk2amit_rulz@hotmail.com thank you for ur time
Back
Top