Beginners - February 2017 (Page 28)

Set.cpp file implementation
 
Hi everyone! Currently working on an assignment for data structures. Specifically, the assignment is to create a static implementation of a set. Add the efficie...
[5 replies] Last: int i = 0; i < used; i++ http://stackoverflow.com/questions/25429771... (by gunnerfunner)
Program is rounding the decimal value wrong!
 
Hey guys I am using an example out of a book that shows sample output as the following. Loan Amount: $ 10000.00 Monthly Interest Rate: 1% Number of Payme...
[6 replies] Last: Hey all, Thanks for your responses. I have to use floating values. Th... (by MisterTams)
Storing an array in an object
 
Hi, I am wondering how to create an array to store the values that are user inputted for the filter (ValueFilter) and how to define the length of that array ...
[1 reply] : What are you trying to filter? (by Yatora)
Turtle Graphics
 
My program is suppose to move the turtle until it reaches 30,000 steps. I'm confused as to how to use while loop. I know it's wrong, I'm just lost on the steps,...
[2 replies] Last: while (disTraveled = 0) The code inside the while loop will never ex... (by Yatora)
Making own collection class, exception driving me crazy!
 
I don't know why, but gives the following runtime error: Exception thrown at 0x000D7D88 in ConsoleApplication19.exe: 0xC0000005: Access violation reading locati...
[12 replies] Last: > Not sure why clang synthesizes operator=. A cursory inspection doesn... (by JLBorges)
Program Help Login and Asterisk
 
Please guys help me with this, disregard the bottom part, what I just need to take care of right now is the log-in process, the password should be in asterisk a...
[4 replies] Last: Your code does not look good and please get rid of goto . Code indent... (by Yatora)
Where does function store in memory
 
I have this code: #include<iostream> void print_number() { int i=13579; std::cout<<i; } int main() { std::cout<<(int *)&print_number; system(...
[4 replies] Last: the actual location varies by OS. Its in the big pile of memory alloc... (by jonnin)
Search the string of numbers to check if it contains any letters
 
In my function isValid I need to check the string phoneNumber and make sure it only contains the digits 0-9. If it does contain a letter I must set status=3. Wi...
[5 replies] Last: > I know that the phoneNumber.find_first_not_of("0123456789") > search... (by JLBorges)
by toklo
Hexadecimal to Binary Approach
 
Noob here. I have to write a program that converts a hexadecimal number to binary. Only using <iostream> and <string>. My approach was gonna be to do a char arr...
[no replies]
Log-in Limiter and Asterisk Password Fix :(
 
Hi guys, this might be the last favor I am gonna ask (i know its too much) but can you please point out and fix the problems with this source code. Basically it...
[2 replies] Last: Well asa you can see on the 2nd part it is the MENU already. I am only... (by deleon123)
by simer
Returning struct array from a function
 
The function only returns the last element, how can I return all the elements of the array? #include <iostream> using namespace std; const int N=2; ...
[6 replies] Last: Thanks so much! (by simer)
Switch function
 
Pardon the long code, it is just there to give the question context. The question is why the switch function isn't running the functions in the class?? ...
[2 replies] Last: Perfect, thanks :) (by neil222)
Basic C array (I suck());
 
Hello, I have a C++ test tomorrow about a few basic things. One of them is using C arrays. As a practice assignement I have to get the highest and lowest AS...
[14 replies] Last: That is why I said it was possibly a technicality. If the requirement... (by jonnin)
Argument error missing =
 
Is there a way to write this specific argument error? For example: a bad argument will be missing "=" and has nothing after it (example of the argument is -find...
[2 replies] Last: why are you trying to trigger errors? int main() { int x = ; return 0... (by jonnin)
having trouble with dynamic memory allocation
 
I am having trouble implementing dynamic memory allocation in to my program. I am trying to dynamically allocate memory for the products in my program. For some...
[5 replies] Last: I am doing an assignment for school and the assignment says "For the ... (by pleaseINeedHelp)
by stav
how to detect mouse press & release on windows?
 
hey how do i detect when the mouse is pressed and released? (on windows btw) i dont have a window with a message loop, so i cant wait for an even to be fired i...
[3 replies] Last: You can use GetAsyncKeyState on Windows. https://msdn.microsoft.com/en... (by integralfx)
Array Deletion
 
Whenever An array is deleted with the code below I get the following message: HEAP[week5.exe]: Invalid address specified to RtlValidateHeap( 00E60000, 009EF9...
[2 replies] Last: Ok makes absolute sense Appreciate it. (by andrewllewop)
Process terminated with status -1073741510
 
Hello. It's this thing, that just keeps happening for a long long long time ( don't ask me when did start cuz I don't even remember). Everytime when I type a pr...
[4 replies] Last: OMFG, it may sound weird, but i just entered the ctrl+c command and I ... (by Yoooooo)
Passing a Variable from Main into a Function
 
Hi! I'm currently working on a group project for my computer science course. For some reason, we can't figure out how to pass a variable from the main (num_days...
[3 replies] Last: Line 49: What value do you think you're passing to getDays()? Hint:... (by AbstractionAnon)
Problem with iterators - code does not compile
 
Hi, I want to make a function which does the following: take two strings, str1 and str2. Check if all the characters of one string are contained in the other st...
[5 replies] Last: Hi coder777, yes, thanks once more. In fact I had already implemented ... (by Claudius7)
February 2017 Pages: 1... 2627282930... 37
  Archived months: [jan2017] [mar2017]

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