Beginners - May 2020 (Page 5)

Error in Complex Matrix exponentiation calculation within a class
 
Hello I am writing a program to calculate the exp of a matrix for a given formula. I can successfully calculate the scalar division and multiplication of the...
[15 replies] Last: Hi, I thankfully sorted the raising the matrix to a particular power... (by Shishykish)
by Ben19
c++ grid game
 
Hi, im making a minesweeper like game and trying to find out if this subroutine's code is correct or if there is any errors in it such as if statements. Thanky...
[9 replies] Last: this is where i am so far need to put proper indentations to make it e... (by Ben19)
What's the point of linking libraries
 
In GCC, you can link libraries using the -l flag followed by the library name. What's the point of doing this when you have already #included the header of the ...
[1 reply] : In GCC, you can link libraries using the -l flag followed by the libr... (by MikeyBoy)
by Mif
Anyone can help me with the SDI ?
 
#include <windows.h> #include <commctrl.h> #include "resources.h" #define ID_CHARACTERS 1 #define ID_CLOSE 8 #define IDC_STATUS 103 #...
[13 replies] Last: It's only an expression saying destroy a function But... what do you... (by MikeyBoy)
Too many parameters for this operator function
 
Hello, I don't want to use a friend keyword for + operator overloading. I have an error in line 35. How can I fix it? Thanks #include <iostream> using n...
[1 reply] : Operators are syntactic sugar that allow you to write lhs op rhs // r... (by keskiverto)
Beginner Trouble
 
I have an IP address stored in "example" and I cannot use it in the following, "HINTERNET hFtpSession = InternetConnect(hInternet, example, INTERNET_DEFAULT_FTP...
[5 replies] Last: What doesn't work? Any error messages? Any output? (by Thomas1965)
Class and object
 
If I: Person a{"p1", 'M'}; Person b{"p2", 'M'}; a.marryTo(&b); how can I do "b.marryTo(&a);" inside the marryTo function? class Person { public: Person::Pe...
[1 reply] : Your data structure for a family tree isn't quite right. So starting ... (by kbw)
How can I post longer code
 
I have this really long project for class that I can't fit here. Is there somewhere for me to post it, so I can get some tips/insults on it?
[1 reply] : Pastebin... (by markyrocks)
Question about vectors, iterators and vec.erase() and destructor
 
Ok so I been playing around with vectors alot. I have been learning alot but have some specific questions. First of which if I have a vector say of ints. ...
[12 replies] Last: i was having issues with lost data and i wasn't sure if i was like co... (by dhayden)
How do I extract integers from a string?
 
I am attempting to write a program in order to solve linear equations of various formats ("5x-8=2" or "5x+5+5x=15"). I am using code written on this forum http:...
[13 replies] Last: I stumbled my way through the assignment and got a (very messy) progra... (by millerjacob49)
Linked List from Text
 
sorry for my english hi guys i need help in linked list getting elements from the text file. pls fix it for me. I can't get read from text file.I know forgat c+...
[8 replies] Last: Hello OrseskO, You are not wasting my time except for not posting the... (by Handy Andy)
Newbie Question.
 
Hi Guys! Complete newbie here, with a quick question. I cant switch back and forth between "void FirstStage()" and "void CClient()". Any help would be greatl...
[4 replies] Last: Hello Googie85, What everyone has failed to notice and I will say thi... (by Handy Andy)
Find letter in array
 
Hello, I am trying to find the letter that the user entered to search for it on the array. For example if the user enters the char "b" then it will search throu...
[2 replies] Last: char "b" is not a letter. a letter is 'b'. It matters depending on... (by jonnin)
If equals problem.
 
Hi Guys!! I have a simple problem with my following code. "buf" contains "GIMME". The problem is that I cant get it to reflect a TRUE. if ( buf == "GI...
[9 replies] Last: this is one of many reasons to use c++ string. Those support the == ... (by jonnin)
Dataset for unit testing
 
Hi I am writing some unit tests for a class which I have written. Many of the methods of the class are to retrieve data held in the class in various ways. I wo...
[1 reply] : I would go for approach a since it will give you more flexibility. If ... (by Thomas1965)
File Data Won't Display
 
Hello, I am completely new to coding as an entirety and don't particularly have the best professor teaching me. I am trying to create a program that helps a res...
[3 replies] Last: #include <iostream> #include <iomanip> #include <sstream> #include <f... (by lastchance)
class member before the var was assigned
 
What does it mean that class member ptr before variable mda_sm ? ptr is equal to mda_sm ? Is there any term/noun to called this assigning behavior? ...
[1 reply] : ptr is a type. The typedef keyword is used to alias a type under a new... (by highwayman)
std::experimental features
 
Regarding the features of the technical specifications (in the std::experimental namespace), are they stable enough to be used in actual programs? Or can they b...
[5 replies] Last: I have gcc 10 currently (the latest version). Still no experimental/la... (by TheToaster)
by yem
Returning a List
 
Hey, I'm supposed to merge two list in a non descending order. I'm given a main that I have to use and cannot change. The merge function has to be a global f...
[7 replies] Last: Thanks guys! I got it working! The issue seemed to be that I mistakenl... (by yem)
print students name in ascending according to marks
 
I had sort the mark for all tests, quizzes, assignments and final exam in ASCENDING order. But I don't know how to display all student's name in ascending order...
[3 replies] Last: Thank you everyone. Really appreciate your replies. (by murasaki98)
May 2020 Pages: 1... 34567... 17
  Archived months: [apr2020] [jun2020]

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