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

Need solution C++ (a small program )
 
Given an integer, find the sum of all the digits in the number until the sum becomes a single digit. E.g. sum of digits of 9264 = 21. Then sum of 21 = 3.
[2 replies] Last: #include <iostream> using namespace std; int main(){ int t=0; int q... (by sujitnag)
by Gyiove
Making float to string function
 
Hello everyone. I have this: void reverse(char *in, int isize) { char t = 0; for( int a = 0; a < isize / 2; a++ ) { t = in ; in = in[(isize - 1...
[5 replies] Last: http://en.wikipedia.org/wiki/Single-precision_floating-point_format Th... (by MiiNiPaa)
HELP
 
Program is about to compare any two numbers input. Then, it will display whether the number is minimum or maximum. Use switch statement. #include <iostream> ...
[4 replies] Last: @ShazzyFeey (11) already http://www.cplusplus.com/forum/general/154193... (by sujitnag)
A simple event-handler implementation
 
Hi,everyone I just wrote a simple implementation of event-handler. The implementation is straight and simple and i’m simply opening the subject for discuss...
[no replies]
by Nezar
pImpl Idiom
 
Hey, I might be asking this because of a lack of experience. What is the point of using the pImpl idiom when you are just going to forward the the calls o...
[1 reply] : 1) Separating implementation and interface, increasing encapsulation. ... (by MiiNiPaa)
C++ Game Programming
 
Hey guys, is there any good tutorials out there for a professional esque game using either sdl/opengl. I have done a little bit of game development with java, h...
[3 replies] Last: sdl2 is much more recent that that 90's old version. And less well t... (by Peter87)
C/C++ Programming practice
 
I am curious to hear some of y'all's ideas on programming practice for C/C++. I enjoy programming math oriented things but I also want this to be more than just...
[1 reply] : Since you like math based things you could head on over to https://pro... (by Tresky)
No data written to file? I/O question.
 
The file is open, the program has exclusive access to the file, no data is written at all. Even the TestLine fails to write. Save.open("SaveFile.mystery...
[10 replies] Last: I just found the issue, I have to use both ifstream and ofstream varia... (by RealGiganitris)
Searching and Displaying a specific line
 
// hi i have a problem in option no. 3 because my code doesn't read a specific //or the text i input and it also not displaying the line in command prompt. //wh...
[no replies]
Advice on how to remember so many of your own classes and functions?
 
I'm at the point in my program where I wouldn't be surprised if I've reached my 500th class (though some are very small, I still need to remember them), and I d...
[7 replies] Last: As other have said, use namespaces and libraries to organize your code... (by AbstractionAnon)
need to enter more than one char input, not working
 
Basically I'm having trouble reading more than one character. I want the user to input character traits(ie, w, a), if two traits are entered they get the job...
[6 replies] Last: It looks like you want the user to enter a string in the format of "a,... (by ModShop)
by I14R10
Repetitive function
 
Hello I need to have a repetitive function. Now it only executes once after it compiles. Can I have a function that is like "Update" function in Unity3D? Tha...
[no replies]
Password Program
 
So I need to make a program that recieves a 10 letter only password, then onece the password is entered, it starts off as AAAAAAAAAA...AAAAAAAAAB...AAAAAAAAAC.....
[2 replies] Last: http://www.cplusplus.com/forum/general/152784/ booradley60 gave you ... (by anup30)
how to count same numbers once in an array
 
iam trying to count the same numbers in an array just once like 38 38 40 38 40 37 the output should be 2 since 38 is repeated and 40 too but for my code th...
[11 replies] Last: @keskiverto before commend you should run my program first. it work n... (by sujitnag)
by Irhcsa
Setting a background
 
We have made good progress lately. Here is the next problem to tackle. Trying to put our forest background as the background for the rectangle we have create...
[3 replies] Last: thanks. now I got how to set background (by AssignmentExpert)
by xscept
Length of array of struct
 
Hello, I'm trying to make an application and I need the length of the array of a struct. Like this: struct myStruct { int integer; }; myStru...
[2 replies] Last: If you want to calculate amount of elements in the array, you can use ... (by MiiNiPaa)
Initializing const char * member variable in constructor
 
Hi all, I have a class that defines a window (a popup dialog of sorts), and I want the name of that window to be constant. The only problem is that the name o...
[4 replies] Last: Doing what you do in the first post should be fine because name is not... (by Peter87)
ASN 1 decoding
 
Hi, I am developing a pos terminal application using "C" language. In that case I have to communicate with a mobile device using RSA certificates. But termin...
[4 replies] Last: Hi, Thanks for your reply. Finally I wrote a simple code for this. ... (by dushantha12)
need help...
 
this is for a school ok? i wanna to do some thing that if person press 1 start to add student and when press EOF something like 999 or -1 finish the entering.....
[7 replies] Last: I am not mad, I am trying to explain reasoning behind each line. Remem... (by MiiNiPaa)
by biti
multimedia security
 
i can help mee some one i nedd one code for security data or any alghorytm for that thnx..
[no replies]
January 2015 Pages: 1... 678910... 24
  Archived months: [dec2014] [feb2015]

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