Search the web
Sign In
New User? Sign Up
c-prog · C/C++ Programmer's Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 69921 - 69950 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
69921
Hey all That was exactly what my problem was i was missing 2 functions that i needed to declare in my class what a rookie mistake! Ah well lesson learned its...
glogic20
Offline Send Email
Apr 1, 2009
12:17 pm
69922
Hi guys, Newbi here . I am trying to read a quadrature rotary encoder and porting some BASIC code over to C. I got it to decrement properly . But incrementing...
Csaba Zvekan
czvekan
Online Now Send Email
Apr 1, 2009
10:10 pm
69923
... if (bla) { do something } else { do something else } Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs,...
Tyler Littlefield
tyler@...
Send Email
Apr 1, 2009
10:22 pm
69924
Thanks Tyler, That did the trick . I googled it after I sent off the message and made the second {} brackets but didn't have the "else" statement. You cleared...
Csaba Zvekan
czvekan
Online Now Send Email
Apr 1, 2009
10:48 pm
69925
no prob, glad I could help. Happy coding! Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs, they're called...
Tyler Littlefield
tyler@...
Send Email
Apr 1, 2009
10:49 pm
69926
http://odetocode.com/Blogs/scott/archive/2004/08/20/401.aspx...
knowledge seeker
knowledgeseeker78@...
Send Email
Apr 2, 2009
5:51 am
69927
... Hi Csaba - I'm interested in your definition of IOPIN. Is it memory mapped eg. #define IOPIN (*(unsigned char *)0x1234) Because in C it can help to use the...
John Matthews
johnmatthews...
Offline Send Email
Apr 2, 2009
5:57 am
69928
this may be very basic but plz., help How to pass an array(1 Dimensional) to a function, multiply its elements by 2 and return to main function and assign to...
rsashwinkumar
Offline Send Email
Apr 2, 2009
1:47 pm
69929
well, you want to pass a pointer to the array, not sure what you mean by multiply it's elements, possibly multiply each element of the array? then return the...
Tyler Littlefield
tyler@...
Send Email
Apr 2, 2009
2:11 pm
69930
pass the array as reference in the function. void chArray(int *array) { array[0] = 4; } int main(void) { int arr[] = {1,2,3}; ... chArray(&arr[0]); ... return...
Allison Vollmann
allisonvoll
Offline Send Email
Apr 2, 2009
2:17 pm
69931
as reference? that's as pointer. Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs, they're called randomly...
Tyler Littlefield
tyler@...
Send Email
Apr 2, 2009
2:41 pm
69932
The thread on returning arrays from a function raises a question to my mind. Is there a way to determine how many elements are in the array without explicitly...
Michael Sullivan
msulli1355
Offline Send Email
Apr 2, 2009
2:49 pm
69933
... Not in C. You could perhaps have a struct: typedef struct _array{ void* array; int* count; } _array; and pass that around instead of the raw array. (The...
Paul Herring
shabble
Offline Send Email
Apr 2, 2009
2:55 pm
69934
sizeof(array)/sizeof(array_type) Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs, they're called randomly...
Tyler Littlefield
tyler@...
Send Email
Apr 2, 2009
2:56 pm
69935
... I think that the question was asking if the called function could determine the size of the array, not the calling function. I think that the answer is...
Jim Dougherty
jimdougherty
Offline Send Email
Apr 2, 2009
3:01 pm
69936
... Still, the called function would have a pointer to the passed-in array and would know its type, so couldn't it still do the sizeof thing?...
Michael Sullivan
msulli1355
Offline Send Email
Apr 2, 2009
3:05 pm
69937
On Thu, Apr 2, 2009 at 3:54 PM, Tyler Littlefield <tyler@...> wrote: char x[] = "hello world"; int foo(char* array){ [...] ... Doesn't work. -- PJH ...
Paul Herring
shabble
Offline Send Email
Apr 2, 2009
3:05 pm
69938
... it's worked before. :p Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs, they're called randomly added...
Tyler Littlefield
tyler@...
Send Email
Apr 2, 2009
3:11 pm
69939
On Thu, Apr 2, 2009 at 4:05 PM, Michael Sullivan <msulli1355@...> wrote: [..] ... All it has is a pointer to the first element of the array - (you're not...
Paul Herring
shabble
Offline Send Email
Apr 2, 2009
3:12 pm
69940
gotcha. Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My programs don't have bugs, they're called randomly added features. ... From:...
Tyler Littlefield
tyler@...
Send Email
Apr 2, 2009
3:12 pm
69941
... If that worked, then your compiler is broken. -- PJH http://shabbleland.myminicity.com/tra http://www.chavgangs.com/register.php?referer=9375...
Paul Herring
shabble
Offline Send Email
Apr 2, 2009
3:16 pm
69942
... If you use an array as an argument to sizeof then it gives you the total size of the array which is good, however the called function is given a pointer to...
Jim Dougherty
jimdougherty
Offline Send Email
Apr 2, 2009
3:22 pm
69943
Hi John, Yes IOPIN is a memory mapped register in a header file. #define IOPIN (*((volatile unsigned long *) 0xE0028000)) I use " IOPIN" in an ARM7...
Csaba Zvekan
czvekan
Online Now Send Email
Apr 2, 2009
3:26 pm
69944
and what is an pointer?...
Allison Vollmann
allisonvoll
Offline Send Email
Apr 2, 2009
3:26 pm
69945
sizeof(array) / sizeof(array[0])...
Allison Vollmann
allisonvoll
Offline Send Email
Apr 2, 2009
3:27 pm
69946
On Thu, Apr 2, 2009 at 3:55 PM, Allison Vollmann ... Won't work: http://tech.groups.yahoo.com/group/c-prog/message/69937 -- PJH ...
Paul Herring
shabble
Offline Send Email
Apr 2, 2009
3:32 pm
69947
... Sorry, I should have said that my question wasn't anything to do with your 'else' question - I just wanted to check that you were aware of the 'volatile'...
John Matthews
johnmatthews...
Offline Send Email
Apr 2, 2009
4:14 pm
69948
a hunting dog! A pointer is something that is pointing to a place in memory.... hence pointer. When I learned 'C' (dinosaurs still on earth) I was taught there...
Michael Comperchio
mcmprch@...
Send Email
Apr 2, 2009
5:12 pm
69949
ok. I was thinking c++, you can pass reference which is diff from a pointer. Thanks, Tyler Littlefield Web: tysdomain.com email: tyler@... My...
Tyler Littlefield
tyler@...
Send Email
Apr 2, 2009
5:21 pm
69950
Remembering the reason for references in c++ is to hide the implementation of things (whatever things might be). References are part of the OOP design. The...
Michael Comperchio
mcmprch@...
Send Email
Apr 2, 2009
8:10 pm
Messages 69921 - 69950 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help