General C++ Programming - November 2011 (Page 41)

calling function from classes
 
Im trying to call a function from a class called report but i cannot call i have tried calling it like this Candidate::report(output,x),Candidate rep; rep.repor...
[3 replies] Last: http://cplusplus.com/forum/articles/40071/#msg218019 There is no prob... (by ne555)
cout second smallest and largest number
 
Hello, How can i print second smallest and largest numbers entered without using array. (IF, Switch, Loop) are allowed. please advise. double small, s...
[6 replies] Last: double max = 0; // largest # seen so far double max2 ... (by xlswitch)
Website and Payment
 
Hello Everybody :D I think i came to the wrong place to ask this question because it is about websites, payment and download. Here is my question: how can I ...
[1 reply] : You need to put a "if condition" in the payment routine function to ch... (by crosslink)
Class Help (Errors Acessing Data)
 
I have over 50 classes of information. I want each to have a name, description, and cost inside their respective class. Each time I go to create this array I en...
[8 replies] Last: Thank you! (by dfurball)
Help me plizz
 
What this code is gona do a show after compile. Class ex{ int x; Public: Ex(int x) {this->x=x; Cout<<"C:"<<x<<endl;} ~Ex(){Cout<<"D:"<<x<<endl;} };...
[1 reply] : Why don't you compile it and see? This sounds rather like a homework p... (by anonymous23323124)
Multithreading problem.
 
I have problems with multithreading. When I do like this: boost::thread thread ( boost::bind ( _getfile, remote, local ) ); thread.join (); void _getfi...
[3 replies] Last: Up (by Scottas)
by jrybar
Rewriting old program using functions!
 
Hey guys, my assignment is to rewrite this old program that I wrote by using various types of functions. The old program worked perfectly. it read the following...
[no replies]
Search string in a file & then copy the next 5 lines t 2nd file
 
Hi I wrote the below code to search a string in a file (in file1.log) & once it find the line, I want to copy the next 5 lines to output.log file. I tried...
[no replies]
String
 
I have to enter two words into this program and everytime i hit the spacebar, and another letter then enter. My program flips out. Thanks struct node { s...
[2 replies] Last: if you are doing it like: int initCount = 1; string initWord; char ... (by Azagaros)
Does Anyone Understand Semaphores?
 
I have a project in my C++ class that I've been having some trouble with. I don't fully understand semaphores, and this particular problem revolves around semap...
[4 replies] Last: It's C++/CLI --- not generally accepted on this forum. Not many peopl... (by closed account 1yR4jE8b)
C++ to BCD conversion help
 
Hey everyone im working on programming an attiny2313 with AVR studios, im looking to convert this code from C++ to BCD. Was wondering if anyone knew either a wa...
[no replies]
would you please help with my program calculation?
 
I can get my program to run and everything looks right except i cannot seem to get the parking fee to calculate to the right amount. this is what i have so far:...
[10 replies] Last: Thanks Programming Noob. Your Awesome, You did solve my programing pr... (by Psych)
problem looping and array
 
hello, i done this program and try to execute it. but it still have error at the third looping. can someone help me fix the error? and tell me why i have this e...
[4 replies] Last: No, they are ALMOST the same. Arrays start at zeroes, so when your lo... (by whitenite1)
by CSD00d
Problem detecting enter key with Cin and Template
 
I'm currently working on a bit of code which takes in a value of a template of type "item." After this, it is supposed to check if the enter key is pressed or n...
[no replies]
template compiler complication still exist ?
 
COMPILER COMPLICATIONS Many compilers do not allow separate compilation of templates, so you may need to include your template definition with your code tha...
[1 reply] : It looks like Comeau would be your best bet if you want to use the ex... (by shacktar)
Determining whether to concatenate CSV values or not
 
I am writing a program that needs to read in a CSV file of customers. However, some customers are people names in the format of "LastName, FirstName" and some ...
[1 reply] : ¿could you? Change the delimiter, quote your fields, parse from righ... (by ne555)
How to complete the user define function; I did 3 functions
 
#include<iostream> #include <iomanip> using namespace std; void convertFtoC(int); // converte function F to C void convertCtoF(int); // ...
[no replies]
by Thamir
I need some help
 
hello . how can I halt infinte loop (EX:this loop is to capture network packet) by pressing any buton on keyboard and if I did that action (pressing),I gotta ...
[3 replies] Last: void StartSniffing(SOCKET sniffer) { unsigned char *Buffer = (char ... (by Thamir)
delete and destructor
 
I am dumb today and confused. It is bible to me that each new should be paired with one delete. Also, I know class destructor will be called if variables are ou...
[10 replies] Last: I think I got it now. This isn't like just making variables, this conc... (by cheawick)
pointer addresses--help.
 
hello, I'm exercising on to how manipulate with pointer addresses, this piece of code work's fine and it show's the values when exiting function named "f", bu...
[9 replies] Last: char* a = new char ; //a point to the memory that allocated by new. ... (by youtubezou)
November 2011 Pages: 1... 3940414243... 47
  Archived months: [oct2011] [dec2011]

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