Beginners - November 2016 (Page 17)

by zspar
Square root slightly off
 
Hi, I was supposed to write a basic recursive square root function but the values it returns are slightly off. Im not sure whats wrong, and help would be apprec...
[3 replies] Last: You need to: - return a value on line 34 (as mbozzi says above) - use ... (by lastchance)
Return to int main()
 
I am having some trouble with the following code; int main(int argc , char *argv ) { When I get an error message inside the above code I am waiting for 5 ...
[6 replies] Last: Thank you so much!!! Matt. (by Googie85)
capturing user input into an array
 
I'm creating a madlib game. The code I've included below, extracts words from a string, modifies them, and displays the modification to the user. The user see'...
[3 replies] Last: Actually I don't think you should use cin.ignore() in this function. ... (by Chervil)
Array math, average, even numbers and the minimal value.
 
Hello, i was wanting to know how to find the average of a set of randomly generated numbers in an array. I also need to display the even numbers of the arr...
[13 replies] Last: simply for average u write a while loop #include <iostream> using nam... (by Shahrukhx04)
No matching function call
 
Im trying to pass a pair, a char, and a 2d array into a function call but i get the no matching function call error. Function: bool threePathCheck(pair <i...
[4 replies] Last: as soon as i posted i realized it was a const char and got it working.... (by kingkush)
How to be a good coder?
 
Bello !! I would like to ask you guys about how to get over the beginners zone... currently I'm in the process of learning C++ however, I can't write some b...
[1 reply] : Hi, please edit your topic and move it to lounge section, you may see... (by shadder)
Unqualified-ID error
 
I keep getting an unqualifies-id before token '{' on line 42. Any help would be grewatly appreciated. My program is not complete yet. #include <iostream> ...
[4 replies] Last: Do I need to do something with the weeks? (by tlctech)
Multiplying a variable by itself(squaring) without using pow function
 
So my instructor for my c++ class wants us to make multiple functions that do various operations on an initial value given by the user. He told us to essentiall...
[1 reply] : double squared = double initial * double initial; You're declaring d... (by integralfx)
by loulau
find common elements from two arrays
 
I try to find the common elements from two arrays. The output shows incomplete common elements. Sometimes it also shows repeating elements. #include <ios...
[4 replies] Last: Thank you AbstractionAnon. I think the program is correct now. I need... (by loulau)
by cppppc
LinkedList using array?
 
Hello all! This code is an implementation of contiguous lists, in the main(), I always get the message "List is full", what should I do? const int Long=100...
[4 replies] Last: Thanks !! (by cppppc)
Phone book Program
 
My assignment is to program a phone book and Im so confused someone please help me!!! Here are the instructions: The program starts by reading a test file. ...
[1 reply] : Hello randflec, The first thing I would is decide on what variables I... (by Handy Andy)
Pointer to String Array Question
 
Hi I'm working on a school assignment and am having difficulty understanding how to implement part of it. I have to create a function with this exact signature...
[1 reply] : When passing single dimensional arrays to functions the following are ... (by jlb)
Trouble with Loan Payment Calculator Program
 
I have this homework assignment to create a loan payment calculator and I thought I was going to be able to do it with no issues but everytime I run it it gives...
[3 replies] Last: You're still doing effectively the same thing that booradley pointed... (by AbstractionAnon)
Local IP Address
 
How can I find my local IP from c++ code. Without using the system function.
[1 reply] : C++ does not provide a function to do that. You're going to have to ... (by AbstractionAnon)
Updating code
 
I'm having trouble updating this code to a modern compiler, it keeps giving me an error! saying "convo.h" file not found! Code: #include <iostream...
[1 reply] : What compiler and operating system are you using? The conio.h header f... (by jlb)
URGENT - file operation question
 
Hi everyone, I am taking coding class and I couldn't figure out a homework question for the life of me (I might just be too dumb for coding Ha!). If you coul...
[6 replies] Last: Well, it is exactly what you are using in your own example! So? I as... (by jlb)
by rain
What is wrong with this C++ code?
 
What is wrong with this C++ code? #include <stdio.h> #include <string> int main (int argc, char **argv) { std::string command = "open -a kate"; ...
[1 reply] : Use g++ instead of gcc when compiling C++ code. (by Peter87)
Need Help
 
Okay so i'm in a c++ programming class and i need some help. I'm trying to take my file and make it so it compares two char arrays from files that i already hav...
[3 replies] Last: You simply need to iterate through the arrays comparing the student an... (by AbstractionAnon)
Search vector by line number
 
I've been working on a program that stores the data from a fasta file to a vector. The user can then search the vector by searching for a line number and the pr...
[3 replies] Last: Hello naegleria73, If you want to extract from the vector by using a ... (by Handy Andy)
A noob has a problem
 
Write your question here. #include <iostream> #include <limits> using namespace std; int main() { cout << "Guess the number!Its bigger tha...
[9 replies] Last: But you haven't used a while loop anywhere in that code? If you want... (by Chervil)
November 2016 Pages: 1... 1516171819... 44
  Archived months: [oct2016] [dec2016]

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