No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, I am currently trying to write a program that will read from either stdin from a file (using <) or from piped input. I have the portion using the < working because i am able to read the st_size of the file and create a read() call accordingly: read(0,&inptr,stdinfo.st_size); … |
|
Hello, ive got a quick question about changing characters within a .asciiz. Here is a snippet from the code im working with: [code] ## This is 300004D2 ## la $a0,value # Initialize the value lw $a0,0($a0) ## This is equal to 8## la $a1,count # Initialize the loop counter lw … |
|
hi guys... im having a problem figuring out exactly how to fill a dynamically allocated array of doubles. bool getData(double **x, double **y, int n) my function is passed these two pointers to pointers and, in the end, they are supposed to point to the addresses of dynamically allocated arrays … |
|
Hello, i have a simple question about pointers... The code that goes with the problem is: [code] int* getPtrToArray(int& m) { int anArray[5] = { 5, 4, 3, 2, 1 }; m = 5; return anArray; } int main() { int n; int* ptr = getPtrToArray(n); for (int i = … |
|
Hi, Ive recently been working on a C++ project where we are required to prompt the user for a string "command", take the first char from that string to decide exactly what command it is, and then take the remaining parts of that string and turn them into individual characters … |