Beginners - November 2013 (Page 66)

function prob
 
I implemented two function that upper a string I am wondering which of this two functions is better? void uprStr(string &str) { for(unsigned int i=0...
[9 replies] Last: Yeah I noticed that afterwards sorry. I was just looking at the ops ex... (by giblit)
Even number not initialized error?
 
In my main program, I get an error stating my even number is not being iniatilized; however, in my void function, I have the evennumber initialized to zero. ...
[2 replies] Last: Yep! (by sherre02)
by ivan1
Multiply the elements of two arrays
 
Hi all, I am trying to multiply two array values for 10 different values, but only the first one is nonzero, others are all 0. int numS =10; int x = {3...
[2 replies] Last: So, the updated code: int numS =10; int x = {3,4,6,7,8,9,7,6,4,3,2,... (by ivan1)
by layzer
Displaying in rows and colums
 
hello all! i seem to have a problem. i am assigned to display 50 test scores in rows of 5. I have no idea what i am doing, i have found nothing useful on the in...
[5 replies] Last: You should just be able to eliminate the two dimensional array you cre... (by cooper90)
Make file with command line arguments.
 
I have to run a program by the command "make postfix". The program also needs a command line argument which would be a file "data3-1.txt" I am confused on how...
[3 replies] Last: postfix: program.bin ./program.bin $(test_data) $ make postfix tes... (by ne555)
same elements in array
 
Write your question here. I would ask you to help me with this problem:you have an array(input) and then the output is the same array but without the dupli...
[3 replies] Last: you should actually input to a temporary variable then check if that v... (by giblit)
by ephekt
output of sort() function
 
This one should be easy, Using the standard string class if the input is baadcc Is there to a way to change the output of the sort() function to look like chara...
[1 reply] : Use std::unique_copy(). Then iterate over the the new string counting ... (by norm b)
Character frequency in array
 
I am having problems counting the frequency of all characters in a given array. This is my code so far. For some reason, all it outputs is 0. What should i chan...
[2 replies] Last: Yep, it works! Thanks! (by antirsi96)
HELP! ME! PLEASE! palindrome program using a function with no string
 
I don't even know where to start my teacher just keeps talking about palindrome programs with strings and no functions! I am so lost and I need a miracle with a...
[no replies]
Celsius and Fahrenheit Temperatures
 
Greetings! This is my first post. I have been reading this website for help for homework for a little now and am stumped on a few things. I am a little lost ...
[7 replies] Last: I would keep main simple until I got the functions working, something ... (by admkrk)
3D Graphics
 
Hi Everybody, I'm a 2D c++ programmer who has made motion games like tetris, pocket tanks, snake and now im think of jumping to 3D graphics. So my question is...
[2 replies] Last: thanks man, lot of people told me to begin with ogre, guess now i dont... (by Yash8976)
by jand
std::future and "Unknown error -1"
 
Running this example from the documentation gives me an error: Checking whether 313222313 is prime. terminate called after throwing an instance of 'std::sys...
[4 replies] Last: You are doing o(n) when you could easily be doing o( n/2 ). What you s... (by giblit)
small problem
 
when enter Life is so good then output is only lIFE......why this happen.....where is so good gone.....help #include <iostream> #include <string> using...
[2 replies] Last: i know this happen....but where are other word (by awais rana)
by tota
need help in this exercise
 
i have this question to exercise for my midterm but i don't know how to solve it,,i mean i have the idea but i don't know how to write it in c++ program, please...
[1 reply] : Here's a thread which gives a way to find the maximum and minimum. htt... (by Chervil)
help me solve this question
 
Prompt user to input a string and a character then display the 3 positions of occurrence of the input character Hint: You could find yourself needing the ass...
[4 replies] Last: • Sample Output: “The letter s has occurred in positions 3, 4 and... (by keskiverto)
Why's this happening?
 
Hello I was programming something when I noticed that I can do this: . . int main() { blaseClass *baseObjPtr = nullptr; childClass childOb...
[2 replies] Last: Ok, I'll look it up. Thanks. EDIT: Though I've done OOP, neither my c... (by The illusionist mirage)
by Adas
Parallel numerical sequence in matrix
 
So, I made program that can find inverse diagonals of the square matrix and count it average. Now I need to make that program to find parallel numerical sequenc...
[5 replies] Last: Hey, post what else you make. I wanna see where you're taking this thi... (by sherre02)
For loop help!
 
Hey guys! Having a bit of trouble trying to go about printing with for loops. What I'm aiming for is the following... ----/----\ ---/------\ --/-----...
[6 replies] Last: Awesome thanks so much Yanson! @veektorh yeah you could do it like th... (by igotabuginmyeye)
Run different programs from menu
 
Hi could someone help me, i have this menu and i want the user to input the correct number for the program then it runs it. this is my code for the menu #...
[3 replies] Last: Do you actually want to invoke different executables for each case (wh... (by mutexe)
dev c++ need help
 
hi, i have created a maths app, int choice is the menu, i was wondering after say the user clicks number 1 and has done the area of a circle how can i get it to...
[12 replies] Last: There were a couple of small problems with the previous code. Line 22 ... (by Chervil)
November 2013 Pages: 1... 6465666768... 80
  Archived months: [oct2013] [dec2013]

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