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 set up the proper statements so it is input correctly. I need...
[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 bridges, you have to courteously play a role as an actor wi...
[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, it does. When control goes to the line that it is on, even if...
[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 INCLUDES_ASTree_HPP_ #define INCLUDES_ASTree_HPP_ #include <l...
[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 and the number of votes received by each candidate. The prog...
[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, the year it was made, and the list of actors in said film, and...
[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 character array of Userinput is a character array of ...
[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> using namespace std; /* function main begins program executi...
[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 trying #include <iostream> using namespace std; struc...
[3 replies] Last: Thank you coder777, I will try that. ne555 can you expand on how I c... (by Joshua Schweigert)
Help required on following errors
 
XXXXXX
[1 reply] : Global operator<< takes 2 parameters; the left hand side, and the righ... (by Zhuge)
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 need to do something. With that being said, is there a way to...
[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 need to use it somehow to hack a password from a console ap...
[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; is exponent locate a 10 byte from memory or 10 bits ????
[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 >> operator is a friend of. I can't see anything in my code that...
[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 ; do { cout << " program" <<endl ; do...
[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. Here below my reading and writing function Here fname i...
[no replies]
indexing arrays
 
In the below program, I am curious why the array is indexed as ndigit[c-'0'] rather than just ndigit . It seems the -'0' part is optional, since the intention i...
[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 DIRECTIVE FOR FILES #include <iostream> #include <iomanip> using na...
[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','\0' }; char f; cout << "Please enter ...
[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.