General C++ Programming (Page 9)

What should a packet look like?
 
Hi. A more general question about network programming. I'm trying to create a server/client messen...
[2 replies] Last: I'm trying to create a server/client messenger system just as a learn... (by kbw)
by wuubb
initializing multidimensional string array
 
G'day all, In one of my programs I have a 3x3 array of string that I use to display the outcome t...
[4 replies] Last: didn't realize that arrays worked differently than the other variable... (by MiiNiPaa)
How do I return element in an array thats inside a class?
 
I have a program where I roll a die X number of times and need to print how many times it lands on e...
[3 replies] Last: aDie::aDie() { int countOfRoll = {0}; //this is a local variable,... (by ne555)
Why isn't this program working?
 
I am trying to allocate a node variable on the heap using "new". Im trying to do this in the functio...
[2 replies] Last: @Jib, thank you it worked. (by armonsafai)
generate random type
 
Hi, Is there any way to generate random types I build? I know rand command returns random intege...
[1 reply] : Try making a template and then, make a random number from the random n... (by rjvc)
by cGuru
Connect Computers To Play Game?
 
I have a Blackjack game that allows users to create a login account and it keeps track of their bet ...
[2 replies] Last: (A) How would I code it? Very Carefully (and it would be very sys... (by Cheraphy)
Pig Latin Program
 
A class assignment requires I write a program in C++ that translates phrases into pig latin. It does...
[7 replies] Last: or you could do that... (by jasonwynn10)
Please I need help regarding this c++ peoblem
 
You need to write a code, which will calculates results, depending on the values that user ente...
[5 replies] Last: the way this site works is that you have to give us a start that you m... (by jasonwynn10)
What design pattern to handle this?
 
#include <iostream> #include <string> #include <list> #include <vector> #include <set> #include <a...
[5 replies] Last: Ok, I've been able to adapt JLBorges' solution to meet my original des... (by prestokeys)
pass fail input
 
i cant seem to get the program to return the right grade it keeps returning 0 or 1. i want the progr...
[3 replies] Last: duplicate thread here http://www.cplusplus.com/forum/beginner/147918/ (by wildblue)
Swapping nodes in a doubly linked list - bad logic??
 
I've been working on this linked list priority queue for the better part of two days now, and for th...
[4 replies] Last: swapUp actually takes it's argument by pointer, so I don't think that... (by cire)
Mixer loop optimization?
 
Anyone knows if these loops can be optimized? #define C_SAMPLEPOS(channel) (channel->sound.posit...
[1 reply] : I've worked on it a bit: //Simple macros for checking samples! //Pre... (by superfury)
by Ksenon
Caesar's cipher
 
Hello everybody. I've got as homework the coding of Caesar's cipher in C++. I've created the followi...
[5 replies] Last: This can be problematic. Those characters are not a part of standard c... (by MiiNiPaa)
help
 
Hello, can anyone help with this program? [The cost of shipping is 3 KD (currency) for the 1st k...
[4 replies] Last: thank you so much (by JojoCx3)
Struct Reference Initialisation
 
Hey there, I have a custom struct hierarchy that goes vaguely like this: struct Base {}; st...
[1 reply] : struct base { /* ... */ }; struct my_class { // http://en.cppref... (by JLBorges)
Template Capture Stringency
 
Hey there, I was creating a template and I realised that certain data-types/structs/classes would n...
[2 replies] Last: Thank you very much. Will read. (by SixTsevN)
Program not giving output.
 
Q. WAP to find the next palindrome number larger than the input number. for eg:- Input=25 ...
[8 replies] Last: #include <iostream> #include <string> static void add(std::string& ... (by iQChange)
GLEW Problems.
 
Hello! Im using SFML with GLEW. But when i try to compile my app, build log show fast-moving text fo...
[2 replies] Last: Im linking a static lib, and #define GLEW_STATIC and SFML_STATIC (by hakeris1010)
a program about class
 
how i solve this Implement a class library that will hold information cards and loans ( whom you b...
[no replies]
Linear Linked List traversal broken
 
I'm attempting to insert items in my list in sorted order. I have accounted for if head is NULL, and...
[2 replies] Last: Sometimes I just need someone to point out the obvious. THANK YOU! I t... (by ATCraiger)
Pages: 1... 7891011... 64
  Archived months: [sep2014]

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