General C++ Programming (Page 6)

Why is this not reading as a sting?
Hi all, It's been a while since I've programmed in C++ but the below: ifstream fin("SMX_Test.csv")...
[2 replies] Last: Might be easier to create a struct for the data and use simple vector.... (by Thomas1965)
Please explain this program
Can somebody explain this program line by line in simple words i am new to c and c++ so i just kno...
[3 replies] Last: ip.type = INPUT_KEYBOARD; = 0; = 0; (by Thomas1965)
Merge a linked list with another linked list O(1)?
I am supposed to merge one linked list with another linked last so that the first linked list is emp...
[5 replies] Last: Apparently "merge" as in "concatenate", "append", or "transfer content... (by keskiverto)
by Chaost
Detect numeric keys with few statements
I have to detect key input from the keypad (1-9) as well as whether CTRL/SHIFT/ALT was held down at ...
[2 replies] Last: That's the solution I ended up with, seems it's the tidiest way to acc... (by Chaost)
Err C2228 - Possible Most Vexing Parse?
Hello I am trying to recreate a system I made in Python. Here is the error I am getting: error C222...
[3 replies] Last: Thanks guys. Just figured out the problem a little bit before the resp... (by Dish5oap)
Mirroring 2D array across diagnol
I am trying to mirror an array. This is the array I am given 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 ...
[4 replies] Last: ok, so you want to mirror arcoss the top left to bottom right diagonal... (by jonnin)
program running out of memory?(crash)
Hello guys I am making a kind of snake game where you hit a piece of fruit your score gets increment...
[11 replies] Last: I suppose the GNU crowd thought that it would not be politically expe... (by adam2016)
Double Variable Evaluating to True
Hi! I am working on the following for an assignment, but I keep returning the same error "Line 33: t...
[3 replies] Last: @Kloppite and @lastchance thank you! I did not realize that the way in... (by coloure)
by stav
Invalid use of incomplete type
Hi I have two calsses: MyObject and MyLogic MyObject inherits from MyLogic but MyLogic needs to h...
[2 replies] Last: oh, of course. Yeah i think i will try to rethink my design again T... (by stav)
Small library providing getters/setters
Hi guys, I've written a small library, allowing you to simply add getter/setters to existings varia...
[5 replies] Last: @doug4 I would change std::function<void(T &, T const &)> _setterFunc... (by marco91)
C++ Classes (issue)
Hey guys so I've been trying to gain some understanding of classes by creating a OOP program in one ...
[3 replies] Last: If I may give a piece of advice, you may want to look into overloading... (by Lehti)
Brute Force Program Error on for loop
// Can someone run this program on C++ compiler: I'm getting an error on this // for loop on line 1...
[1 reply] : int i,j,r,c; printf("Enter number of rows\n"); scanf("%d",&r); prin... (by jonnin)
Can't read all lines of file
I have a program that is supposed to read from a file, parse it, then output the results. I can't ge...
[5 replies] Last: Thanks JLBorges, I was able to fix it after checking the file. (by jmoore201897)
Scan function
My main is below, I have gotten this far but do not know how to implement funciton scan0. In my dire...
[2 replies] Last: Fascinating, The function scans word starting from bit startingBit, t... (by keskiverto)
by EvanH
RK4 for getting the position of a particle, and then animating it
Hi everyone, I'm relatively new to C++ but I know the basics. I want to use C++ to integrate equa...
[1 reply] : I would think that Vulkan or opengl is what you want: https://vulkan-... (by coder777)
Moving Ahead
Hello C++ Programmers, I feel like I'm probably an intermediate sort of guy right now. Are t...
[2 replies] Last: Stroustrup in 'Programming: Principles and Practice Using C++' What ... (by JLBorges)
by DiaZie
Output problem
template<class T> class XVar { private: T m_X; public: XVar(T x) { m_X = x; } T GetXValue() {...
[7 replies] Last: thanks you so much that helps me out. I fixed it (by DiaZie)
C++ template question
Hello, In my test.h file, template <class T> class B : public A<T> { public: // B( const T...
[1 reply] : Place the definition in the header file. See: Why can’t I separate ... (by JLBorges)
Shortest path and double cost edge
The code I have successfully finds the shortest path when the distance both ways from one node to an...
[6 replies] Last: Hmm I just thought that syntax highlighting of that thin made it easie... (by sonar87)
Rent-A-Car Program (Please Help)
I have been tasked to create a highly detailed Rent-A-Car program. I am struggling a far amount. If ...
[1 reply] : What do you need help with? Nobody here is going to do your homework ... (by doug4)
Pages: 1... 45678... 19
  Archived months: [jan2018]

Cannot post in this page. To post a new message, go to the first page.