General C++ Programming - November 2013 (Page 14)

Separating a String into Integers
 
Hello. I have a string that the user will enter. Assume the user is not destructive or that I have s...
[2 replies] Last: for (unsigned int i = 0; i < s.size(); i++) { cout << atoi( s.subst... (by SmeeAfshin)
Is faking a requirement to successuly integrate with a dilusion filled society?
 
This is a position I am constantly finding myself in. In order to not alienate yourself, or to burn...
[2 replies] Last: That was very beautiful! But C++? (by JasperBraun)
Stop Program from going to goto label
 
Hello. My program has a goto label in it and when the program is not instructed to goto the label, i...
[6 replies] Last: Oh thanks! That works. Thank you! (by JasperBraun)
copy constructor, and destructor for n-ary tree
 
I have to write a copy constructor and a destructor for a n-ary tree. Here is the .hpp #ifndef IN...
[1 reply] : std::list<ASTree*> child; // Not a pointer... ~ASTree(){... (by JockX)
Array Please look over my work. I am pretty new to C++.
 
Write a program that allows the user to enter the last names of five candidates in a local election ...
[1 reply] : I am going to show where you went wrong, what are the advantages of ha... (by JockX)
Need help with accessing and iterating a std::list in a BST node
 
I am currently working on a project for class that reads in from a .txt file the names of a film, th...
[1 reply] : Traverse the tree like you do in print_titles(). Instead of outputting... (by norm b)
Send two or more char arrays over a TCP socket (winsock)
 
send(sConnect, (userinput, key), 256, 0); sConnect is already predefined as a socket Key is a ...
[1 reply] : Eh...you send one then the other or encode them together some how ... (by closed account S6k9GNh0)
Programming a Random Number Game
 
This is the code i have so far #include <iostream> #include <stdlib.h> #include <time.h> usi...
[2 replies] Last: I appreciate your help sir i changed my if statements to do while loop... (by whitephoenix95)
Tree
 
Hello I'm trying to wrap my head around the implementation of a simple binary tree What I'm tryin...
[3 replies] Last: Thank you coder777, I will try that. ne555 can you expand on how I c... (by Joshua Schweigert)
How to check to see if data in struct has changed
 
Hey. I am working on this project where I need to see if data in a struct has changed and if so I n...
[2 replies] Last: What could change the data? It's it your code or something else? (by mutexe)
Help Brute-Forcer
 
So here is my problem I made a brute-forcer and it works all fine it finds passwords very fast now I...
[4 replies] Last: Eh... since we cannot plausibly verify that what you're doing is legal... (by Albatross)
by m1m6
how many bits are created by name:number
 
hello i want to ask how many bits are created when write this line unsigned exponent:10; ...
[1 reply] : It means that 10 bits out of however big unsigned int is (typically ... (by Cubbi)
friend operator >> and private variables
 
I'm unable to access private variables belonging to the object class Date, which my overloaded >> op...
[5 replies] Last: You're welcome :) (by MikeyBoy)
My Do While statement doesnt work
 
#include <iostream> #include <string> using namespace std ; int main() { string bored ; ...
[2 replies] Last: Please use code tags when posting code, to make it readable. Look at ... (by MikeyBoy)
by game
Usage of strcat for output file name..
 
I have user defined file name! Therefore, i wanted to use the input name for my export file too. ...
[no replies]
indexing arrays
 
In the below program, I am curious why the array is indexed as ndigit[c-'0'] rather than just ndigit...
[3 replies] Last: Because the ascii characters '0', '1', '2', ... , '9' are the numbers ... (by ShodanHo)
Updating!!
 
Hey, could any one possibly help me with; updating say, a users weight.?
[6 replies] Last: okay thank you for that. i'll try it out! thanks again! (by GeorgEy5)
issue with output
 
this is my code and i don't know what is the issue with it? #include <fstream> // FILL IN DIRECTI...
[1 reply] : Please use code tags to make your code readable. (by MikeyBoy)
Please help me with this simple program?
 
#include <iostream> using namespace std; int main () { LOOP:char n ={'a','e','i','o','u'...
[9 replies] Last: thanx....its working now....!!!! (by Messi001)
November 2013 Pages: 1... 1213141516... 46
  Archived months: [oct2013] [dec2013]

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