Beginners - November 2013 (Page 30)

Help...Binary Search not working
 
Having a little trouble with current project. I've read a file that contains first + last names into an array, sorted it with a function and displayed it to scr...
[3 replies] Last: So I should be using friendArray where position will return the resu... (by coder777)
Void Functions
 
my second function doesn't seem to look correct. May someone check this and correct me? For my second void function, i'm trying to display the results from the ...
[2 replies] Last: I have not tested yet :/ since I'm waiting for my other confliction to... (by fahmankhan75)
Trouble with structures
 
Hello everyone I was having some trouble with my code in which I keep getting errors (in bold) that say error: no match for 'operator ' in 'employee ' . I've ...
[4 replies] Last: It compiled and worked great! Thanks for all your help. (by valmaral)
Byte as String
 
Hi, Sorry if here only for c language. But below code is from c++ that i need to convert into vb6. CBM_RdrName CBMReader ; long l_ret_value = CBM_Enumer...
[no replies]
sales commission
 
Write your question here. Use a selection structure inside a function to solve the problem. Assume a salesperson is paid a variable-rate commission depend...
[1 reply] : #include <iostream> #include <cstdlib> #include <iomanip> double co... (by atriumheart)
Can't abort a process and return
 
This program is a soda machine simulation from my C++ book. There is only one part that I can't get to work. When the user decides that he/she doesn't want to...
[8 replies] Last: I'm still hashing this out. Thank you SO MUCH!! (by jlpurnell)
by layzer
validating input question
 
howdy all, i need to validate user input. A string of numbers that allows "- +" signs, but not any other signs like "$,%". i have it all working except for allo...
[no replies]
Compiler trouble (1,2)
 
So I have been trying to compile and run the "hello world" exercise from the tutorial for the last 45 minutes. I am using Dev-C++ and typing in the source code ...
[21 replies] Last: > i agree but its better than using the terminal to keep it open Consi... (by ne555)
Homework help decrypting
 
Hi, I need help with my coding and what is wrong with it. I am making a function where I have to read from a file called contents.txt and decipher the code a li...
[1 reply] : Please do not post more than once: http://www.cplusplus.com/forum/gene... (by LB)
Operator overloading in classes
 
first Thanks to everyone here , I just want to know what the meaning and why we use this symbol '&' when we we need to compare 2 things in classes by using the...
[3 replies] Last: Well that doesn't make sense. Do it the way your assignment calls for ... (by Thumper)
Static Variable in classes
 
I would like to know why sometimes we need to use the static variable as private memeber for class , and what the benifit from it? thanks
[1 reply] : Same reason why I would make any data field private. I don't want grub... (by mobotus)
Getting an annoying error
 
This is the error i am getting from my compiler, not sure why but it is quite frustrating!! For this i have to use structs and arrays of characters. Not suppos...
[9 replies] Last: Your problem is simple, you are accessing array index 'i' of your game... (by J4ke)
how to put array data into vector?
 
hey everybody! i got the code from this site that is supposed to put the bits from an array into a vector, but it does not work and i don't know what i am do...
[7 replies] Last: oh nice the error is gone from the compile! THANKS A BUNCH! (by density)
How do I remove duplicate values from an array
 
Hello, I am writing a Go Fish! game in C++. I am currently working on my "checkSet" function. It identifies a set of cards and removes them from the player's ha...
[3 replies] Last: it will handle that then. You must read the code and understand it...... (by IWishIKnew)
Array Problem
 
This code will not assign any values to min and max. It just returns zero for their values. I need to find the largest and smallest number in the array. Any sug...
[no replies]
error
 
kindly tell me whats the error in this program?i am using code blocks and its giving error in braces.plz help #include <iostream> using namespace std; ...
[6 replies] Last: thank you every one for helping,.,.,take care :) (by white beauty)
help me
 
can some one help me put these in ascending and descending order? // Number Sorter #include <iostream> using namespace std; char menu() { c...
[3 replies] Last: You can use #include <algorithm> and use std::sort to sort things,... (by minuss273)
Structures
 
I have an assignment for school that I need help with. I've written some code and just need to know if I have done what is asked. This is the assignment. Any in...
[1 reply] : I didn't see you create a constructor or call a function to print the ... (by Garion)
Cannot trace array to see where it fails
 
I have a program that is supposed to populate an array of structs and then write the info from weeklyHits . The progam compiles but nothing shows up after the "...
[4 replies] Last: I wasn't getting an error message, the program compiled fine. It just ... (by kraftykayjay)
Copying array into another array?
 
have this code that will copy the elements from an array to another array. This code is from the book but i'm not clearly understanding it. Importantly, the whi...
[1 reply] : Double knock knock for this too :D (by fahmankhan75)
November 2013 Pages: 1... 2829303132... 80
  Archived months: [oct2013] [dec2013]

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