General C++ Programming - August 2015 (Page 8)

Insert name into array
 
hello, i have A task which is following: Suppose NAME is an 8 elements array which stores five name: Ammar, Fatime, Hassan, Karishma, Owais. Insert a new name ...
[3 replies] Last: I would just make one array of 8 elements and fill it with all 6 names... (by AldenB)
by Nootor
string* Problem
 
I have a jar of biscuits and every biscuits are words. I have to put and take biscuits. The putting i know how to make it but with the taking i have a problem. ...
[1 reply] : Where is Jar's constructor? What unknown value will be stored in the ... (by kevinkjt2000)
Read inside Network Card
 
Dear All, I would like to know if it's possible to read inside a Mac Card of a machine connected in a network. I would like to enter in the Network Card ...
[1 reply] : Please, do not double post. It clutters forums and spreads attempts to... (by MiiNiPaa)
by Winsu
I want to become a C++ developer;I need tips
 
I am an Industrial Electronic Engineer, I finished my degree doing a final proyect of a Algorithm to simplificate boolean fucntions and It was coded in C++.So I...
[10 replies] Last: I'm on that, I have three programms....what I'm wondering I fI would n... (by Winsu)
by AldenB
I need clarification on how class functions work
 
I'm getting this error when I compile this code. /*Error error C2440: 'initializing' : cannot convert from 'void' to 'Chrono::Date'*/ I believe this comes fro...
[5 replies] Last: So if I changed add_day() to return a Date, it would compile? (by AldenB)
by aj3423
utf8mb4 encode/decode in c++
 
A third-part server echoes string to my client program, the string contains both utf8 data and unicode emoji. for example: http://i.stack.imgur.com/eQHaU.png...
[1 reply] : The reference you've read saying that UTF-8 sequences are 3 bytes or s... (by helios)
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 setWindowSize(int width, int height); When I use this function, my...
[3 replies] Last: Looking at the SFML source calling setPosition on your window goes dir... (by Hippogriff)
Program to find GCD
 
Here's a program i wrote to find the greatest common divisor of two numbers. I was required by the teacher to use for loops. The output screen displayed "Enter ...
[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 some help. #include "Monomio.h" Monomio::Monomio()...
[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 to a CalcPoint function in my fragment shader. Here's the r...
[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 me these 2 errors. /*Error LNK1120 1 unresolved externals*/ ...
[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 tested), factorials return nothing and disallows any further inp...
[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> #define VAR 0 using namespace std; struct lambda { union ...
[no replies]
Ungets
 
I need to write in C a function ungets(s) that will push back an entire string onto the input. Should ungets know about buf and bufp or should it just use unget...
[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 or subscripting, I can use only pointer arithmetics . I ha...
[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> #include <string> #include <string.h> using namespace...
[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 (below) in VS 2015 CE compiles and works, while in XCode it r...
[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 I've seen this done is like this: std::vector<int> myVec...
[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; cout<<"get user input >"; cin>>n; for(int count=0;co...
[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 book exercises and the one that isn't giving the right output i...
[2 replies] Last: Yes it was the type, thank you for your help. (by application123)
August 2015 Pages: 1... 678910... 17
  Archived months: [jul2015] [sep2015]

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