Can you give a couple of examples of the kinds of strings you want parsed? Also you mention "design pattern". What is that, exactly?
Impossible to answer, since we don't know what you're trying to achieve. Are you copying from the 2D array to a single "slice" of the 3D array,...
Well, we can't read your mind. What does it do wrong? Does it build? If not what are the errors? If it builds, what does it do when you run...
The error means that it should return a value but doesn't. The statement you need is "return <something>;" (not literally, of course, you have to...
Also you could do it with just one for loop: if you can calculate the total number of stars from limit, and where to place line breaks, you could...
You can do it with just two loops, if you can fill in the blanks in the following: int limit=4; for (int row=??; ??; ??) { int numStars=??;...
Try calling ByteFromText in a small test program that passes known strings of bits to ByteFromText to create results (on the screen) that you...
OK. fgetc() returns a single char from the file. It does not return a string, and you cannot cast a char to a char*. Casts are tricky business,...
Please use code blocks when you post code. What happens if you don't use a cast? How many characters does fgetc return from the file?
EOF is an integer and is equal to -1. So if c is unsigned char, when you read at EOF it will be set to 0xff, which when upcast to an integer for...
It doesn't really matter that your supervisor isn't around; you're writing the program, not him, so it's up to you to solve these problems. You...
> What point as in the EXACT (x,y) pixel values on the screen? Yes. It seems to me that you need to know this to work out an equation to return...
What point on the screen do you want the higher end of the array1[0] line to end at? What is the value in array1[0]? Is it equal to highest? What...
OK, the address itself isn't invalid, what is invalid is the assumption that j still exists. C and C++ pass arguments to functions by placing...
Have another look at the for loop and see if you can see any reason it might not plot the array1[0] line (hint: there is a reason, so you just...
No, you can do that; it's easy enough. If you get stuck post what you've got and we'll give you a hint how to continue. Start by RTFM to...
Yep, the output is undefined because j is local to fun() and its address is no longer valid when the function returns. So if the program needs...
Presumably because istringstream implements a conversion to double, whereas string doesn't. So you convert the string Expr to an istringstream...
Please read the posting guidelines. In particular you should have used code tags - this preserves formatting which makes code a lot easier to read.
As the name suggests it gets the value of a number. So for "27" it would return 27.
Separate names with a comma.