In computer science, a pointer is a programming language data type whose value refers directly to (or "points to") another value stored elsewhere in the computer memory using its address.
3
votes
0answers
35 views
Correct implementation of a one-wire temperature probe on a 328p arduino? [on hold]
I'm not sure if I've got the correct implementation of pointers here, or if they're really even necessary. This is a condensed version of my code for a one-wire temperature probe on a 328p arduino ...
5
votes
3answers
146 views
Hour averaging program
I am looking for tips on improving my short program. I am using system("PAUSE") because this was for an assignment.
Code:
#include <iostream>
#include <string>
#include ...
4
votes
2answers
101 views
Heap implementation using pointer
I know heaps are commonly implemented by an array. But, I wanted to share my pointer implementation and have your feedback(s) :)
General idea:
I convert the index to its binary value and then trace ...
3
votes
1answer
107 views
list class for pointers with constant time item removal
This is a class I implemented that can be thought of as a highly specialized version of std::list<> for pointers. It provides the additional feature that the elements can be removed in constant ...
1
vote
1answer
159 views
Modifying a string by passing a pointer to a void function
Beginner here. I have two questions:
Please explain the relationship between pointers and arrays? In this tutorial, they change int c by changing *r in the function. How is that possible?
Also, ...
2
votes
3answers
200 views
Review implementation of stack by using pointers in C
After I had my code for stack implementation by array reviewed I wrote stack implementation by using pointers. Here's my code. Any suggestions for improvement are welcome.
I'll be adding updated ...