Beginners - October 2014 (Page 29)

A lottery with arrays-displaying matching digits. (1,2)
 
I'm almost done with this program. All I need to do is display the number of matching digits by comparing the user's response to the numbers generated by the lo...
[22 replies] Last: Yes, it is working this time, but the random number generator only nee... (by admkrk)
Find xth character in string
 
Hi again. I'm wondering if there's a function that finds the let's say forth 'c' character from a string. So if I have a string str = "abcdefcc89conecs"; , an...
[11 replies] Last: Smac...I guess I have to go to sleep. Sorry for the stupid question. I... (by Guzfraba)
by Life24
Associative relationship between class
 
Hi, I want implementation association relationship with two class. What i do? Can you give me one example? Thanks
[no replies]
why is there vector? any other thing?
 
Dear Friends, The code below is to solve the convection equation. Would you please tell me what is the role of vector here? if some one did not want to use vect...
[1 reply] : You would use a vector if you needed an array that had to dynamically ... (by TheKingOfTyrants)
by cGuru
Vector Outputs Alien Language
 
Program: I have 2 arrays: 1 for the correct answers to a quiz, 1 for the user. I then have a vector to hold the incorrect answers . It keeps outputtin...
[1 reply] : Line 27: You push_back i, which is an int, but your vector is declare... (by AbstractionAnon)
Problem with stream iterators
 
I have been given the following exercise from my book Write a program that takes the name of an input and two output files. The input file should hold integers...
[3 replies] Last: Thank you cire and MiiNiPaa, guys at #cplusplus guided me through it s... (by closed account EwCjE3v7)
by cGuru
Array Help Please
 
Goal: Write a program that compares the values stored in the first array to the user inputted values in the second array. In order to fix this error: ...
[2 replies] Last: Figued it out. Using char arrray with double quotes (by cGuru)
by ayou
Need help with program
 
Write a program to compute the amount of money you will have on an initial amount invested for a number of years at an annual percentage rate of interest. The u...
[2 replies] Last: Oh okay, wow I see my mistake now. I have been changing everything, bu... (by ayou)
Need a little help
 
New to C++ and first only in the sixth week of class so I apologize for my bad coding up front. Ok so I am trying to write an array that will read numbers from ...
[8 replies] Last: Thank you to everyone that responded and helped. I was able to get it ... (by guglaak)
Cout a binary tree (sorted)
 
So basically my program asks how many random numbers does the user want to create; then it creates that number of random numbers in a linked list, then it show ...
[no replies]
Hello there, Semi-advanced calculator with multiplication/division/remainder priority
 
hey there - I am a C++ beginner, and I'm making a semi-advanced calculator which will calculate such things like 2+9*10 and will get 92, not 110. I need quic...
[1 reply] : The problem is not as trivial as it might seem at first blush. The so... (by Esslercuffi)
Error with std::sort
 
Have no idea why i get this error, with a lambda i get no errors but I need to use a function bool compareIsbn(const Sales_data &book1, const Sales_data &...
[2 replies] Last: Oh yes, found out why, I had included Sales_item, which I hadn`t writt... (by closed account EwCjE3v7)
help!!!!! how can i add values from a loop to a variable?
 
good day masters please help with my grading system program i can only input values but i cannot store it in a variable and display what i entered,i am a beggin...
[2 replies] Last: Is this your code? They are using variables to store the values of in... (by IWishIKnew)
Display currencies in a table
 
Hey! I need some help understanding whats wrong with my code. The program is supposed to read from a textfile, sort the currencies in alpabethic order and wr...
[no replies]
what's missing
 
Using the switch statement, write a program that allows the user to convert either from degrees Celsius to Fahrenheit or degrees Fahrenheit to Celsius. Use the ...
[3 replies] Last: i see, thank you (by Ali Tamim)
regarding class and objects
 
Can somebody help me out here. I want to add complex expressions as many as per the request of user. I am trying to send array of objects through function argu...
[4 replies] Last: Thanks man. Got it right. (by apar ad)
Help figuring out the unresolved externals errors?
 
Write your question here. I keep getting these errors. But i cant figure out what library i didnt call Error 4 error LNK1120: 2 unresolved externals Erro...
[no replies]
C input error (simple addition program)
 
I'm trying to make a program in C, that you enter two numbers into (a and b), it then shows "a+b=n" and returns 0, BUT if the user inputs invalid characters, th...
[2 replies] Last: The isdigit function is intended for characters, not integers. sca... (by Peter87)
a class of polynomials
 
hey guys. ive written a class for polynomials. everything is working, except the addition of polynomials. the following Error occurs: Debug Assertion Failed...
[no replies]
by pik
Array of objects, Bubble Sort, Binary Search
 
This is my first time posting here and I am doing so because I need a little help with an assignment I have for school..I am not asking for the answer but I wou...
[no replies]
October 2014 Pages: 1... 2728293031... 70
  Archived months: [sep2014] [nov2014]

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