• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
can't access constructor vars
rc\main.cpp:16:10: error: 'class A' has no member named 'p' (a.p).If I create object and access its...
[no replies]
by nicode
GNU libstdc++ custom std::codecvt linker error
I developed several custom converters and want to comment on the archived topic http://www.cplusplus...
[1 reply] : With g++ 5.1, custom codecvt facets appear to work as required by the ... (by JLBorges)
Replacing letters in a string(A with Z; B with Y; C with X; D with W; etc)
Hi ! Im trying to create a program that will replace letters in a string(A with Z; B with Y; C wi...
[3 replies] Last: It seems like you are replaceing one letter at a time (all A to Z, the... (by MiiNiPaa)
by anhnha
Pointer to x or y element of CPoint
Assuming that I have an array of points with type CPoint. CPointArray arrpt; //arrpt is an array o...
[1 reply] : It's an array right? So it'll be something like: (*parrpt) .x ... (by kbw)
How many constructors are in the person class above?
Consider the implementation of the following class class person { private: int age; int get...
[2 replies] Last: How many constructors are in the person class above? Yeah, Five but ... (by Gamer2015)
by memouz
pass string to DLL
Hi there I need help with c++ string I am MQL4 programmer I know how to pass any value to dll...
[10 replies] Last: please don't do this: if(test(str)==test(str1))return 1; else retur... (by Gamer2015)
Picking all possible cases.
You are give an array containing 'n' elements. You are given an integer k (input). You must find all...
[5 replies] Last: You did not answer doug4 question. If there is no repetitive element... (by MiiNiPaa)
by st3pha
Cin inside a function inside a process looping
Hi, I'n trying to do a simulation, I need to enter (cin ) floats like a,b,c,d,e,f,g. and use them in...
[no replies]
Output of this code snippet?
What is the output of the following code? int x = 0; int i; for (i = 0; i < 4; i++) ; x++; ...
[2 replies] Last: Actually, as it stands, there will be no output. If you click on the l... (by andywestken)
by Gyiove
Creating your own std::vector like class from scratch (1,2)
Hello everyone! I've been looking at headers like vector , xmemory and stdexcept and there is al...
[29 replies] Last: oh thanks, i shall look it out. Thanks for the help guys, at least im ... (by Gyiove)
time.inl and error C2664
I found this file in a game I'm working on: /*** *time.inl - inline definitions for time-related f...
[1 reply] : If anyone cares I figured out the answer to this problem. You can sol... (by bishoposiris)
Installing matpack C++ library
Hi, I am installing matpack c++ library from the source http://www.matpack.de/ and getting some prob...
[no replies]
by jessi
Merge two Linked ordered linked list
Hi, I am trying to implement a mergelist function that combines the elements in list1 and list 2 in...
[1 reply] : What issues do you have? (by coder777)
undefined reference to `vtable
Hello, I am begginner in C++ and using 3rd party library. When running make target on Xubuntu I ge...
[2 replies] Last: I removed the above costructors it helped. Thank you! (by stridder)
Threads and memory
Hello all! I am developing a simple timer/clock program on Windows 7, Using SFML and Codeblocks w...
[no replies]
Copying a vector through constructor
I'm trying to copy another class' vector to cActionPuppet with the following code. (I apologize for ...
[5 replies] Last: Something like this, perhaps: #include <iostream> #include <memory> ... (by JLBorges)
Help with CSV parsing
Hi, I'm pretty new to C++, and wanted to try and read a simple csv file. The format of the file is:...
[3 replies] Last: you're welcome! (by Gamer2015)
Atomic operations
Hi, I was reading my book "Professional C++ 3rd Edition" by Marc Gregoire on the Atomic operation...
[6 replies] Last: Thanks to everyone that replied to this thread. For future viewers, he... (by IceStorm)
by cotro
Calling a function only to call vector functions it is inefficient?
Hello, I have a certain class whose a member it is a vector. I made this vector member a private mem...
[7 replies] Last: it makes no sense to make a member private and then expose access to ... (by MiiNiPaa)
Pages: 123... 21
  Archived months: [may2015]