Beginners - April 2019 (Page 13)

Structs, command line, & I/O
 
Hello everyone. I wasn't sure how to do my recent assignment. It involved taking two (technically 3) command line arguments that are text documents that can ha...
[1 reply] : Reading from file is no different from reading from std::cin. You can... (by keskiverto)
Why am I getting "No matching function for call"?
 
Why am I getting No matching function for call when I try to call the function? Line 66, it says No matching function for call to 'inputData. Input file: St...
[1 reply] : First, avoid unnecessary use of global variables. Constants are ok. S... (by keskiverto)
C programing language family
 
how different is C++ from C and C#. I want to learn all of them eventually, because some game engines dont support one or the other and I want to experiment ...
[7 replies] Last: How would the compiler tell the difference between your C++/C/C# code?... (by zapshe)
AI on a device that i need to access
 
How do i write a program that gives a command to AI on a device in my home. The A.I is very smart and can understand any command given no matter how it is writ...
[2 replies] Last: if your AI is voice activated, you can do this with notepad and text t... (by jonnin)
by LOSD82
Calculator Averages/How hard?
 
I am interested in creating a calculator that totals a group of ages and from that average determines how much of a risk that group is for certain diseases su...
[3 replies] Last: yep. fumble fingered that. (by jonnin)
"Completing the the square"
 
Given the general equation for an ellipse Ax^2+ Bxy + Cy^2 + Dx + Ey + F = 0 How would I code the equation into simplified form to extract the central p...
[10 replies] Last: ... and I feel like a doofus Get used to it, it's human to be error... (by MikeStgt)
Need an help with an arrays
 
Hello, so I got a file : 3 5 4 7 3 5 8 8 9 7 8 6 5 4 6 7 6 n = 3 (how many rows there are) k = 5 (how many columns there are) Other numbers are an ar...
[6 replies] Last: #include <iostream> #include <iomanip> #include <vector> #include <al... (by lastchance)
Design a class Person with private data members
 
Hello! I've been given this assignment and to be frank, I haven't understood much part of this in college. I usually understand well by examples which are not ...
[5 replies] Last: HrishikeshK, tinker away! When you get stuck for more than hour, post... (by dhayden)
Please Help me with a project
 
This is a cooking game. What should I do at first? I had no any idea. *** Order list *** Order #1: Cheese burger, preparing, 0’40” Order #2: Beef b...
[1 reply] : Hello xehkrebornhkxd, You could start by posting the actual instructi... (by Handy Andy)
'class std::vector<indiv>' has no member named 'init_PM'
 
I am getting the above compiler error when I try to run the following code: #include <iostream> #include <vector> using namespace std; class indiv { // data...
[4 replies] Last: Thanks for the suggestions. I tried removing the first parameter and ... (by phalangium)
separate vector
 
how do i separate my vector #include <iostream> #include <cstdlib> #include <vector> #include <algorithm> #include <ctime> using namespace std; ...
[3 replies] Last: You are already using std::vector's iterators to loop the output, use ... (by deleted account xyzzy)
by sturk
C++ static cast or dynamic cast
 
May I know why's the answer static cast? And why isn't it dynamic cast? Do not understand. Thanks Given following c code: C *p = (C*)( malloc(sizeof(C))...
[2 replies] Last: > Given following c code: C *p = malloc(sizeof(C)) ; > What is equ... (by JLBorges)
c++ operator prob
 
Hi guys, I've a small doubt in the calculation part of my code. The total is not calculating properly. I need it to take either type A or type B when calulating...
[3 replies] Last: Ohh that makes sense, silly me. Cheers, thanks mate! :) (by snoozycs1)
Having trouble with while()
 
I'm having trouble with this problem in my text book and I've tried a lot of different things but it seems that I don't know what I'm doing. We are using for an...
[1 reply] : As far as the while loop goes for unlimited students this is a possibl... (by atn170001)
Outputting char pointer of nodes from linked list prints out garbage after calling display function.
 
The program successfully prints out the char pointer (owner), which displays the owner's name of the bank account. However, after calling the displayAccountInfo...
[2 replies] Last: I managed to work past it. As far as why the c-string was getting corr... (by atn170001)
Trouble with debugging
 
I am having trouble with debugging this code, I think I messed it up somewhere but I cant tell where. And every time I try debugging it a pop up says something ...
[3 replies] Last: Thanks, this helped a lot. (by sethmiller867)
Problem with Quicksort, left pivot point
 
There is a small problem with my code. I have been searching for hours and cant find out what it is. All numbers get sorted except for 2. My original numbers...
[2 replies] Last: Thank you! I will try to follow your advice next time i post. (by Thormind)
Class types - LF Hints
 
On my 6th Build and im lost on what i need to modify and change, need pointers. The build is marked as succeeded but the output is not matching the test content...
[3 replies] Last: Small video file on were i currently am in the project https://drive.g... (by blackstar)
remove() function's not working (perror:permission denied)
 
case 3: cout << "Silme işlemini nasıl yapmak istersiniz?\n1-Ürün ID\n2-Ürün İsmi\n"; cout << "İŞLEM NO: "; cin >> secim3; cin.ignore(); if(sec...
[4 replies] Last: thank you guys :) (by kuzudoli)
Math Game
 
Have to write a program that allows the user has to correctly identify whether each number is a multiple of two, or a multiple of three, or both, or neither. ...
[9 replies] Last: #include <iostream> #include <cstring> #include <ctime> #include <cst... (by lastchance)
April 2019 Pages: 1... 1112131415... 24
  Archived months: [mar2019] [may2019]

This is an archived page. To post a new message, go to the current page.