General C++ Programming - April 2014 (Page 32)

BiDimensional Arrays HELP!
 
I am having problems to find out these results: 1. Row Total 2. Column Total 3.Highest in Row 4. Lowest in Row If anyone help me I appreciate. Here'...
[1 reply] : I am having problems to find out these results: What kind of proble... (by AbstractionAnon)
C++ Sockets vs Java Sockets
 
Does anyone know the advantages and disadvantages between C++ socket programing and Java Sockets? Thanks
[no replies]
case study
 
implement a system for your chosen case study. The system should demonstrate the correct use of at least the following OO concepts: a) Object Orientation: - U...
[1 reply] : A simple survey of what kinds of apples people like would fit your req... (by Duthomhas)
GetAsyncKeyState
 
for(i = 8; i <= 190; i++) { if (GetAsyncKeyState(i) == -32767) {//captured key} } When does GetAsyncKeyState return -32767 and what does it mean?...
[5 replies] Last: bool is_pressed = (GetAsyncKeyState(x) & 0x8000) != 0; Excellent.... (by topnik1)
Linked List - Copy Constructor | Node problem
 
Hello, I have a slight problem. I have a constructed a copy constructor but what I need to do is to is to add the information that every node has in the list...
[no replies]
Problem with List class
 
Hi :) I have a problem, when i run this code: Elenco.cpp http://codepaste.net/4zsiy3 Elenco.h http://codepaste.net/pgdqho Persona.cpp + Persona.h ht...
[4 replies] Last: Thanks for the advice. i Had found the problem Persona::Persona(c... (by Franconet)
Destructor called 2 time
 
Why in this code the destructor is called 2 time? How can i avoid it? Thanks in advance . int _tmain(int argc, _TCHAR* argv ) { Elenco e1;...
[5 replies] Last: @MikeyBoy Ok now it's clear :) Thanks again :) @doug4 Yes you a... (by Franconet)
by ZPryor
Pig Latin
 
I'm having trouble figuring out how to test the first letter more than once for a pig latin program. Here's what I have so far: if (word != 'a') { char t...
[3 replies] Last: Take the vowel checking logic and put it in its own function. You can ... (by booradley60)
String as argument
 
Hi everyone, I have a function which send a string as argument to a txt file, like the following: void Fprint(... ofstream& myfile, const string a, con...
[2 replies] Last: Got it! Just forgot this thing... Thanks! :) (by dekeenfrance)
Need help identifying error in function
 
double expression(int n, double x) { double num=(pow((x),2*a)); double den=fact(n,a); double sum=0; for(int a=0; a>=0; a++) sum=pow(x,n)*(num/den); ...
[5 replies] Last: Assuming you're including all the necessary headers, these are the com... (by wildblue)
by Rockyy
Memory Deallocation
 
I have a code like below Where RB_ANALOGTOOL_MAXNUMCHANNELS = 18; cSampleQueue m_QueuesDig ; for(int k=0; k<RB_ANALOGTOOL_MAXNUMCHANNELS; k++) { m_Q...
[3 replies] Last: You haven't shown us the definition of cSampleQueue so how can we po... (by MikeyBoy)
1 Error, why?
 
Using (Microsoft Visual Studio C++ 6.0) software, follow the sample output to write and run a program that reads one line of text and then uses a function calle...
[9 replies] Last: The "right code" does not benefit you in any way if you don't understa... (by keskiverto)
by zinat
percision in c
 
1.120448 1.139124 1.194763 I am getting the output as above and want to truncate and save it as 1.1 in each case, so which function should i use..
[3 replies] Last: Modified version of trunc function which is capable of rounding to any... (by kannanmj)
by CRooky
Anyone know why this darn phone # program wont compile??
 
I'm tryin to get this phone number format program to work like so: (xxx)xxx-xxxx but for some reason its not compiling the way i want it to..any suggestions..?...
[12 replies] Last: Assuming the input is always given in the correct format (xxx) xxx-xxx... (by kannanmj)
by jaded7
cin.sync vs cin.ignore
 
Firstly, heres an example of how its being used. std::string stringOne, stringTwo; while(1){ std::cin >> stringOne, stringTwo; std::co...
[2 replies] Last: Easy, thanks. (by jaded7)
by simons
stack implementation in c++ with struct
 
Hi, I am trying to implement a stack class which has struct data type as its private member. I am getiing the following error , bash-3.2$ g++ stack_str_ar...
[2 replies] Last: @4 MAX is system (from limits header) macro. So replace it with ARR_M... (by kannanmj)
by CRooky
Annual income program
 
// Annual Income.cpp - displays the annual // income without any dollar signs, commas, // or spaces // Created/revised by <YOUR NAME> on <current date> /...
[no replies]
by CRooky
Hyphens in program..??
 
Does anyone know how I'd go about adding hyphens to this program when typing in a social security #..? I got the sample run up but dont really know where to sta...
[6 replies] Last: NVM..! switched it up a bit and got it to work now...thank you sir... (by CRooky)
by al1432
Loan Payment table
 
I have a problem requiring me to : enter loan amount: Enter interest rate: Enter length of loan (years) It wants me to input the minimum amount for the lo...
[1 reply] : I didn't include the system("pause"); bit, and it works fine on my e... (by smcguffee)
Generic Data Members
 
Hi, I'm interested in designing a class for flexible storage of any imaginable type of data in the same member of the class. At first I thought maybe a templ...
[4 replies] Last: What sort of exception was thrown? (by MikeyBoy)
April 2014 Pages: 1... 3031323334... 41
  Archived months: [mar2014] [may2014]

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