General C++ Programming - May 2016 (Page 2)

by Loke
Drawing a diamond within a circle, gets unexpected spacing after each character
 
Hello everyone, I am still fairly a beginner in C++, having only around 5 months of experience. This...
[2 replies] Last: @Necip // #include <math.h> // C maths header #include <cmath> // C... (by TheIdeasMan)
vector of maps
 
Hi, What am I doing wrong here? #include <vector> #include <map> using namespace std; int main(...
[10 replies] Last: for( int i=0; i < MM.size(); i++ ) Y[ i ] = 0; What's that for? Th... (by BrowserUk)
Help with arrays Please
 
/end
[2 replies] Last: Double post: http://www.cplusplus.com/forum/beginner/191885/ (by chicofeo)
Linked lists
 
This is my code: #include <iostream> using namespace std; struct node { int data; node* n...
[no replies]
Linked lists
 
I'm trying to insert a node in a sorted linked list. but my code is not working, it continuously kee...
[no replies]
Average Population Calculation Program
 
I need to write a program that sums and calculates the average for the data that is contained in the...
[no replies]
sound in c++
 
voice.o(.text+0x16e):voice.cpp: undefined reference to `waveInOpen@24' voice.o(.text+0x1b8):voice.c...
[4 replies] Last: If using g++, get rid of that #pragma - there should be a compiler war... (by Chervil)
by zerd12
problem in template
 
Hi all. This template is to add adjacent numbers, but my problem is that the output numbers that co...
[1 reply] : template < typename In, typename Out > Out plus_adj( In first, In las... (by JLBorges)
math tutor program
 
Can't figure out the error. The program runs well when I select an option from the menu and answer t...
[1 reply] : Next time please use the code tags and properly format your code. It m... (by Arslan7041)
by Alex A
Calling a fucntion and Passing a structure + other parameters
 
Hi guys, I'm having issues passing structure name (student) when calling function countValues. I wo...
[2 replies] Last: AbstractionAnon, thank you so much, i was having so much trouble fin... (by Alex A)
Explain about __packed__ in structure
 
typedef __packed__ struct { unsigned long var1; //4Bytes; var1=0x01234567 unsigned long long var2;...
[1 reply] : __packed__ is an implementation specific compiler directive. When st... (by AbstractionAnon)
cout prevents the program from crashing?
 
Hello. Look at here int main() { std::vector<string> result; char delim = ','; int lastPos = ...
[7 replies] Last: `string::find()' returns a size_t, not an int and it returns string::... (by gedamial)
Maybe somebody knows c++ lists?
 
Maybe somebody knows where to get c++ pdfs with definitions of functions, parameters and etc.? Be ve...
[3 replies] Last: thank you NoXzema. I wonder I couldnt find it myself. (by Pranciskus)
Check if palindrome
 
Hello guys, I wrote a program that checks if text is palindrome. I personally think it could b...
[2 replies] Last: #include <iostream> #include <cctype> #include <algorithm> #include <... (by JLBorges)
by simani
how can I correct this code that proves whether a number is prime or not?
 
Hi, I want to write a code which defines whether a number is prime or not. Also, ask me if I want t...
[2 replies] Last: To give you an idea: #include <iostream> //Function Prototypes. vo... (by chicofeo)
Help how to print ROOT, PARENT, SIBLING, LEAF, LEVEL, HEIGHT, DEGREE, ANCESTOR OF THIS TREE
 
#include <iostream> #include <cstdlib> using namespace std; class BinarySearchTree { priv...
[no replies]
by Alex A
Write a no (zero) argument constructor which initializes the member variables
 
HI guys, I Wrote a no (zero) argument constructor which initializes the following member variables ...
[2 replies] Last: Moschops, thanks for making things more clear. (by Alex A)
Which is a better C++ class design?
 
I have two classes which resemble the following. class Hand { public: func1(); func2(); ... ...
[1 reply] : I wrote about a simple database structure modell in this thread http... (by closed account 48bpfSEw)
Close errors
 
383: error: too many arguments to function `void close()' 384: error: at this point in file ...
[6 replies] Last: I solved it. Thanks for effort. I appreciate that. (by Pranciskus)
How to sort the whole linked list using merge sort?
 
Hi everyone. I met some problems when I want to sort the linked list using merger sort.My linkedlist...
[1 reply] : Please give us the hole runable code with formation and detailed infor... (by closed account 48bpfSEw)
May 2016 Pages: 1234... 17
  Archived months: [apr2016] [jun2016]

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