Tater, I established a long time ago, that the return value was a pointer.
You choose to ignore that fact.
{
float *array; // pointer to an array
array = ReturnFltArray(); //...
Type: Posts; User: Steve A.
Tater, I established a long time ago, that the return value was a pointer.
You choose to ignore that fact.
{
float *array; // pointer to an array
array = ReturnFltArray(); //...
char *_ecvt()
char *_gcvt()
char *itoa()
char *strchr()
char *strcpy()
char *strdup()
char *strndup()
char *strerror()
char *strtobase64()
char *strfrombase64()
Semantics.
I have made that clear from the beginning.
Technically, yes, you are returning a pointer. That has been well established.
I'm not arguing anything different.
Via the pointer, the array...
That is exactly my point.
Clearly, I supplied examples of how it does.
???
More like I got flamed for treading on your turf.
That is a shame.
I do at every opportunity.
I find it very enlightening to know exactly what the computer is doing at any given point.
To me the computer is a thing of beauty, a thing to ponder....
Why does everything here (this forum) have to turn into a pi_ss_ing contest ?
Tater, you and I both know your example is from page-1, chapter-1, of Pointers-101.
Everyone who learns about...
Perhaps because everything "Windows" is based on the API.
???...listen...
is that the sound of a bicycle being peddled backwards ?
What trick ??
Nowhere is "static" equated with "trick".
Because that's how you do it, Tater.
What are you referring to here ??
As am I.
I merely want to make it clear, that yes, you can return data via an array, as distasteful to some as it may be.
Not true.
It's clearly in the code.
No, it is an array.
It is clearly declared as an array.
All that is clearly indicated within the code.
I'm not keeping any secrets here.
Well, saying that is not exactly correct either.
From the perspective of the beginner, they don't care about the symantics.
They just want to know if they can return multiple values.
And, yes,...
Sure, have each option call a seperate function, which collects and returns it's own value, or, performs its own task.
Ninjafish, bear in mind that altho it may have been quite some time ago, we...
It appears that which ever version of VS you are using will only produce Console mode apps.
First, instead of:
main()
---Use:
int main()
Additionally,
your main function should never begin and end like this:
void main(void)
{
...
}
Yes, you can use the system() function to execute an external executable or system (dos) command.
It's relatively simple, you just use:
system("xx.exe");
--- such as ---
...
@Phenax and ekosix:
Please inform your instructors that Dev-C++ is obsolete at this late date.
Please share with them the following information:
"Unless you are using Dev-C++ in Win-XP, you...
Unless you are using Dev-C++ in Win-XP, you are beating a dead horse.
Dev-C++ 4.9.9.2 is nearly six (6) years old and without updates or bug fixes during that time.
In 2005, the developer abandoned...
No need to be rude in your response.
I fail to see where my question was answered, anywhere.
And yes, I am completely new to bitmaps, I thought that was clear in my preface.
I am beginning to get...
@adeyblue: I couldn't quite figure how to get your example to compile in C.
I'm not sure I understand the code example itself to be able to play around with it.
I was trying to find out just...
Hey adeyblue, I'll look at your code.
I have noticed that if I switch-out these two lines:
// hbitmap = CreateBitmap(SBitmap.cx, SBitmap.cy, 1, bpp, NULL);
hbitmap =...
If you want an array of 5 elements, then you have to declare an array with 5 elements.
i.e:
int myArray[5];
myArray[0]
myArray[1]
myArray[2]
myArray[3]
Hey guys,
I've been reading up on working with bitmaps and getting a good feel for it.
Using the Win32 API, I can create a bitmap, load a bitmap from file and I can even save to file a previously...