General C++ Programming (Page 7)

by yj1214
GUI/Multimedia library that supports flexible window set size function.
This is what normal set window size function looks like in most libraries... void setWindowSiz...
[3 replies] Last: Looking at the SFML source calling setPosition on your window goes dir... (by James2250)
Program to find GCD
Here's a program i wrote to find the greatest common divisor of two numbers. I was required by the t...
[4 replies] Last: #include <iostream> #include <vector> #include <algorithm> #include <... (by JLBorges)
Sum of arrays
I need to do a sum of polinomies but I don't know how to do this sum method. I'd really appreciate s...
[1 reply] : First off, this code is incorrect: a.~Polinomio(); b.~Polinomio(); d... (by helios)
OpenGL: Passing a point light in a fragment shader
I don't know if there are any OpenGL gurus here, but I'm stumped. I'm trying to pass a point light ...
[2 replies] Last: Thanks for the reply. I hacked at this most the this morning and I'm ... (by mgoetschius)
by AldenB
Help with header files
I'm just beginning to experiment with header files an I can't figure out why my compiler is giving m...
[2 replies] Last: Thank you very much! I appreciate the complete and concise explanation... (by AldenB)
by AldenB
Issues with my factorial function
I'm working on this basic calculator program and although everything else works perfectly (I've test...
[2 replies] Last: I found it after a few hours (lol). I got it running and everything wo... (by AldenB)
Union assignment test
#include <iostream> #include <vector> #include <memory> #include <math.h> #include <cstdlib> #de...
[no replies]
I need to write in C a function ungets(s) that will push back an entire string onto the input. Shoul...
[5 replies] Last: Write test-cases and exercise the code with a test frame. This may he... (by JLBorges)
by leourb
Pointers and Chars Arrays
Hi, I have to concatenate three strings using only pointers without any other kind of std::function...
[2 replies] Last: Thank you JLBorges! I wish one day to write in C++ as you have just do... (by leourb)
Array in c++
Why the array not created according to the array size? these are my coding: #include <iostream...
[5 replies] Last: You're welcome! (by leourb)
by leourb
Visual Studio 2015 CE vs. XCode 6.4 Debug
Hi everyone! I usually use both above mentioned compilers but I have noticed that this little code (...
[6 replies] Last: Thank you JLBorges! :) (by leourb)
by Wyboth
Question about iterator loops
Say I have a vector of ints, and I want to print each of them using an iterator loop. The first way ...
[4 replies] Last: In for (auto it = myVector.begin(); it != myVector.end() ; ++it) {... (by JLBorges)
by fiqmid
Prime Number Program
#include <iostream> using namespace std; int main() { int n=7; int j,count ; bool prime;...
[3 replies] Last: Anyone? (by fiqmid)
Incomplete char output
Hello, I would appreciate any help or suggestions with this program. I'm working from text boo...
[2 replies] Last: Yes it was the type, thank you for your help. (by application123)
[OOP]{POLYNOMIAL} need help PLEASE!! :/
Hi guys so i'm currently working on something and i need help some help. after i wrote this program ...
[1 reply] : Guys!! nevermind it got solved anyways here is the changes i have done... (by MRmoe93)
by Nootor
Can someone help me run this code
#include <iostream> #include <fstream> #include <stdlib.h> using namespace std; class Triang...
[no replies]
by Leroi
Learning steps
Hi all, im trying to study c++(my first language) from the book "C++ Primer" ,i started it well, the...
[1 reply] : I read the same book(C++ Primer 5th ed) to learn c++ which was my firs... (by ChajusSaib)
by A A A
Need reviews on the following hangman code: #include <iostream> #include <windows.h> //for clear s...
[1 reply] : PLEASE USE CODE TAGS (the <> formatting button) when posting code. It ... (by AbstractionAnon)
Const reference (1,2)
Is const reference like class ... int _kappa; ... int const& kappa = _kappa; ... somehow optimized...
[27 replies] Last: Ty! Trying it. (by Krogoth)
by Duoas
UTF-32 to UTF-8 range_error
Demonstration // Example program // Prints a UTF-8 string to stdout // Fails miserably on non-...
[2 replies] Last: Er, I figured it out: I can't type. U+1F1800 is not a valid Unicode c... (by Duoas)
Pages: 1... 56789... 31
  Archived months: [jun2015]

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