Beginners - November 2013 (Page 23)

Infinite While Loop.
 
EDIT: Solved. Hey guys, So im currently attempting to create a while loop that if a "space" is entered, then the input will stop and it restarts the loop. this...
[1 reply] : Never mind, I feel like an idiot. All i was doing was missing the reca... (by drzazga)
by smevo
Memory Handling
 
Wrong place, sorry.
[no replies]
Functions calculating unknown numbers of parameters with specific rules?
 
Hello fellow coders, I've been working on various exercises and have attempted to create a blackjack game. I have created a function named Card that looks a...
[3 replies] Last: Looks like I was overthinking the solution. I found another way to do ... (by CplusplusAcolyte)
Need help on arrays and functions
 
Write a program which will do the following. Make sure you use functions in your program. Do not use any global variables. 1.Read numbers from the keyboard int...
[2 replies] Last: I understand it, but its due tomorrow. (by jakesweater)
help with seeding random in function
 
Im not sure why the seed isn't working... xcode is saying "Implicit conversion loses integer precision: 'time_t'(aka 'long') to 'unsigned int' ". Thanks for a...
[1 reply] : This is because time() returns long and srand() takes unsigned int. Al... (by JockX)
Array Value Assignent Error
 
In this code I am using a for loop to set the variable min to the minimum value in the array. The same process is working for max, but I don't know why it won't...
[3 replies] Last: Thanks vey much. (by ldelsignore)
Need help on arrays/functions
 
Write a program which will do the following. Make sure you use functions in your program. Do not use any global variables. 1.Read numbers from the keyboard i...
[1 reply] : We are not here to do your homework. Come with problem and we'll help ... (by Rehan FASTian)
Count Vowel Questions
 
I seem to be having difficulty with my code, I have tried many different ways but I can't seem to figure out how to implement some things. I'm also not sure how...
[2 replies] Last: Thanks for the reply. How can I check for Uppercase from a string beca... (by canucksfan1)
Need Help on functions and Arrays
 
Instructions- Write a program which will do the following. Make sure you use functions in your program. Do not use any global variables. 1.Read numbers from t...
[2 replies] Last: snowright is write. Try it out then if it does not work then post your... (by bupeking2000)
by JADM
Merge Sort with dynamic arrays
 
Hello Everybody, i am trying to make a program in c++ which uses the merge sort algorithm, my code compiles properly but it work's just for some cases, in fact ...
[1 reply] : Ignoring for a moment that you're leaking memory like a sieve, let's t... (by cire)
Overloading the '>' operator
 
I overloaded the '>' operator to compare the volumes of two objects that are cones. I seem to be having a problem when I compare the values of maxCone with the ...
[4 replies] Last: I had to use the dereference operator on both sides. I believe the rea... (by ZedjayCoder)
A logic Problem
 
I just start to study c++. I'm reading Deitel&Deitel 8th Edition. There are questions after chapter. I solved many of them. But I cant solved this one: "(Ari...
[1 reply] : if (x<y){ if (x<z) then x is smallest; } (by Rehan FASTian)
Reading Test scores(arrays topic)
 
code]Write a program that allows the the student to enter in test scores from a range of 0-200. Determine the number of students having scores in each of the fo...
[2 replies] Last: hello? (by fahmankhan75)
by NickR
Need help with boolean.
 
I'm not sure what I am doing wrong, can someone please help me. // Program EvenOrOdd.cpp demonstrates common uses of SVRF // functions with valu...
[7 replies] Last: SVRF? It seems to me you have only been taught ints and not booleans. ... (by giblit)
by h4ever
How to read input int from keyboard?
 
Please see the rest of code on bottom of the thread (I'd forgot to add it here). Hi, I have this code: http://paste.ofcode.org/FH7hL4KvqhjVsMj8e3EbpK A...
[6 replies] Last: Yes, thanks. I have it finished! HEADERS: stdafx.h #include <fstrea... (by h4ever)
Stack around variable 'scores' was corrupted
 
How do i get rid of this debug error? just learning.plz help #include <iostream> #include <string> #include <iomanip> #include <cmath> #include <cstd...
[4 replies] Last: OK IT WORKS NOW THANKS!!!! (by Alove9423)
Binary Search working except..one minor problem
 
Not sure why I cannot figure this small problem out with my program. I've read in a file of name strings to an array (haven't covered vectors yet), sorted and e...
[2 replies] Last: Thanks! Guess working on assignments at 330 in the am has an effect on... (by allendks45)
show me my mistake
 
hi,i wanna give a file from notepad that i dont know the number of row and column like 15.0 12.2 13.8 12 54 7 6 ...
[6 replies] Last: @ miladam: use std::stringstream after you used std::getline() . ... (by Catfish666)
BubbleSort Function
 
How to find the bubblesort function in this array ? #include <fstream> #include <iostream> #include <string> #include <stdlib.h> #include <ctime> #incl...
[1 reply] : Read this: http://en.wikipedia.org/wiki/Bubble_sort (by coder777)
help me figure this out
 
i done all this just stumped on doing the backwardstring i know it has to look like getthestring part but in reverse please help me out // 1. Length of a C-S...
[1 reply] : I'm guessing using the string class is out of the question, by the may... (by MrHutch)
November 2013 Pages: 1... 2122232425... 80
  Archived months: [oct2013] [dec2013]

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