Sent from my E10i using xda app-developers app
Affichage des articles dont le libellé est program. Afficher tous les articles
Affichage des articles dont le libellé est program. Afficher tous les articles
mardi 18 mars 2014
dimanche 9 mars 2014
program error topic
In article <(E-Mail Removed)>,
SAHIL MAHLA <(E-Mail Removed)> wrote:
> #include <stdio.h>
>
> void main(void)
> {
>
> char* p ="sahil";
> printf("%c,%c,%c,%c",*p,*(++p),*(p++),*p);
>
> }
>
> result-h,h,s,h
>
> it should be - s,a,a,h
Doctor! Doctor! It hurts when I do this!
Then don't that any more.
--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted.
'I desire mercy, not sacrifice.'
SAHIL MAHLA <(E-Mail Removed)> wrote:
> #include <stdio.h>
>
> void main(void)
> {
>
> char* p ="sahil";
> printf("%c,%c,%c,%c",*p,*(++p),*(p++),*p);
>
> }
>
> result-h,h,s,h
>
> it should be - s,a,a,h
Doctor! Doctor! It hurts when I do this!
Then don't that any more.
--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted.
'I desire mercy, not sacrifice.'
vendredi 21 février 2014
The behavior of the program. topic
The output of the following program is not clear to me.
#include<stdio.h>
#include<stdlib.h>
void Get_Array_Memory(int (*ar)[5])
{
int i =0;
int (*temp)[5];
printf("\nar before assignment = %p\n",(void *)ar); //print 3
temp= malloc(5);
if ( temp ) {
printf("\ntemp = %p\n",(void *)temp);
ar = temp;
printf("\nar after asignment = %p\n",(void *)ar); //print 4
for ( i =0;i < 5; i++ ) {
*(*ar + i ) = i;
}
}
}
int main(void)
{
int (*arr)[5];
int a[5] ;
int i=0;
arr = &a;
printf("\narr in main = %p\n",(void *)arr); //print 1
Get_Array_Memory(arr);
printf("\narr in main after function call = %p\n",(void *)arr); //print 2
for ( i =0;i < 5; i++ ) {
printf(" val of ar[i] = %d\n",i ,*(*arr + i)); //print 5
}
return 0;
}
The output
++++++++++++++++++++++
arr in main = 0x28ac44
ar before assignment = 0x28ac44
temp = 0x800482c0
ar after asignment = 0x800482c0
arr in main after function call = 0x28ac44
val of ar[i] = 0
val of ar[i] = 1
val of ar[i] = 2
val of ar[i] = 3
val of ar[i] = 4
++++++++++++++++++++++++++++++
It is clear that ar in Get_Array_Memory assigned to new address 0x800482c0which is different than 0x28ac44 passed from main. Then how the values assigned in Get_Array_Memory is retained and the same values are getting printed in main? Is it just by chance I am getting the output in main?
--
Somenath
mercredi 29 janvier 2014
Help: recroding program topic
does anyone know a program that can make a recording desktop video and use webcam at the same time in small window like this pic?? :)
thanks in advance :)

thanks in advance :)
mardi 28 janvier 2014
[Q] So it's 2014...NOW should I be running an antivirus program on my Android devices topic
So we are in 2014 in case alot of you haven't noticed. I just read a report how banking apps on Android are more vulnerable that Apple's (watch-out it's gonna be Apple's new selling point), but for obvious reasons I understand why (say FREEDOM!). Anyways...should everyone now be required to be running an antivirus just like is a MUST to be running one on our Windows platform, or is it still early to worry about that? What your opinion fellas?
Libellés :
2014...NOW,
Android,
AntiVirus,
Develope 1,
devices,
it's,
program,
running,
should,
topic
lundi 27 janvier 2014
Re: Highlighting program variables instead of keywords? topic
Skip Montanaro wrote:
> My son sent me a link to an essay about highlighting program data instead
> of keywords:
>
> https://medium.com/p/3a6db2743a1e/
>
> I think this might have value, especially if to could bounce back and
> forth between both schemes. Is anyone aware of tools like this for Python?
AFAIK kdevelop support this.
http://kdevelop.org/sites/kdevelop.o...v_python_1.png
--
By ZeD
> My son sent me a link to an essay about highlighting program data instead
> of keywords:
>
> https://medium.com/p/3a6db2743a1e/
>
> I think this might have value, especially if to could bounce back and
> forth between both schemes. Is anyone aware of tools like this for Python?
AFAIK kdevelop support this.
http://kdevelop.org/sites/kdevelop.o...v_python_1.png
--
By ZeD
Re: Highlighting program variables instead of keywords? topic
On 27/01/2014 01:46, Skip Montanaro wrote:
>> What it is doing is color coding user-supplied identifiers, with different
>> color for each one. I found that confusing to read.
>
> I think it would take some time to get used to, and I don't think it
> would be the only way I'd like to view my program.
>
> I think an interactive pylint (or pyflakes or frosty) type capability
> would be useful, highlighting a subset of the messages it produces,
> like variables which were assigned but never used, or using undefined
> variables. It might be best supported by actually running the checker
> in the background, then using its messages to direct where to
> highlight suspect bits of code.
>
> Skip
>
Pydev uses pylint interactively, must have saved me hours by flagging up
(potential) problems up as I type.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
>> What it is doing is color coding user-supplied identifiers, with different
>> color for each one. I found that confusing to read.
>
> I think it would take some time to get used to, and I don't think it
> would be the only way I'd like to view my program.
>
> I think an interactive pylint (or pyflakes or frosty) type capability
> would be useful, highlighting a subset of the messages it produces,
> like variables which were assigned but never used, or using undefined
> variables. It might be best supported by actually running the checker
> in the background, then using its messages to direct where to
> highlight suspect bits of code.
>
> Skip
>
Pydev uses pylint interactively, must have saved me hours by flagging up
(potential) problems up as I type.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Re: Highlighting program variables instead of keywords? topic
Skip Montanaro <(E-Mail Removed)> writes:
> I think this might have value, especially if to could bounce back and forth
> between both schemes. Is anyone aware of tools like this for Python? Bonus
> points for pointers to an Emacs implementation.
There has been a recent thread on some emacs group about this. Dunno how
far it has gone wrt Python support, but the following mode appeared in
MELPA archives in the last couple of days:
https://github.com/ankurdave/color-identifiers-mode
hth, ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
(E-Mail Removed) | -- Fortunato Depero, 1929.
> I think this might have value, especially if to could bounce back and forth
> between both schemes. Is anyone aware of tools like this for Python? Bonus
> points for pointers to an Emacs implementation.
There has been a recent thread on some emacs group about this. Dunno how
far it has gone wrt Python support, but the following mode appeared in
MELPA archives in the last couple of days:
https://github.com/ankurdave/color-identifiers-mode
hth, ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
(E-Mail Removed) | -- Fortunato Depero, 1929.
dimanche 26 janvier 2014
Re: Highlighting program variables instead of keywords? topic
On 1/26/2014 8:46 PM, Skip Montanaro wrote:
> I think an interactive pylint (or pyflakes or frosty) type capability
> would be useful, highlighting a subset of the messages it produces,
> like variables which were assigned but never used, or using undefined
> variables. It might be best supported by actually running the checker
> in the background, then using its messages to direct where to
> highlight suspect bits of code.
One of my long-term goals for Idle is an extension that would run
user-installed code analyzers over the contents of an edit window, with
the output sent to an OutputWindow. Using the contents of the latter to
mark things in the editor window is an interesting idea. That is already
done for SyntaxErrors and traceback file:line references.
--
Terry Jan Reedy
> I think an interactive pylint (or pyflakes or frosty) type capability
> would be useful, highlighting a subset of the messages it produces,
> like variables which were assigned but never used, or using undefined
> variables. It might be best supported by actually running the checker
> in the background, then using its messages to direct where to
> highlight suspect bits of code.
One of my long-term goals for Idle is an extension that would run
user-installed code analyzers over the contents of an edit window, with
the output sent to an OutputWindow. Using the contents of the latter to
mark things in the editor window is an interesting idea. That is already
done for SyntaxErrors and traceback file:line references.
--
Terry Jan Reedy
Re: Highlighting program variables instead of keywords? topic
> What it is doing is color coding user-supplied identifiers, with different
> color for each one. I found that confusing to read.
I think it would take some time to get used to, and I don't think it
would be the only way I'd like to view my program.
I think an interactive pylint (or pyflakes or frosty) type capability
would be useful, highlighting a subset of the messages it produces,
like variables which were assigned but never used, or using undefined
variables. It might be best supported by actually running the checker
in the background, then using its messages to direct where to
highlight suspect bits of code.
Skip
> color for each one. I found that confusing to read.
I think it would take some time to get used to, and I don't think it
would be the only way I'd like to view my program.
I think an interactive pylint (or pyflakes or frosty) type capability
would be useful, highlighting a subset of the messages it produces,
like variables which were assigned but never used, or using undefined
variables. It might be best supported by actually running the checker
in the background, then using its messages to direct where to
highlight suspect bits of code.
Skip
Highlighting program variables instead of keywords? topic
My son sent me a link to an essay about highlighting program data instead
of keywords:
https://medium.com/p/3a6db2743a1e/
I think this might have value, especially if to could bounce back and forth
between both schemes. Is anyone aware of tools like this for Python? Bonus
points for pointers to an Emacs implementation.
Thanks,
Skip
of keywords:
https://medium.com/p/3a6db2743a1e/
I think this might have value, especially if to could bounce back and forth
between both schemes. Is anyone aware of tools like this for Python? Bonus
points for pointers to an Emacs implementation.
Thanks,
Skip
Re: Highlighting program variables instead of keywords? topic
On 1/26/2014 7:31 PM, Skip Montanaro wrote:
> My son sent me a link to an essay about highlighting program data
> instead of keywords:
>
> https://medium.com/p/3a6db2743a1e/
What it is doing is color coding user-supplied identifiers, with
different color for each one. I found that confusing to read. The only
use I can see for this is to track the usage of a particular name, but
that would be better done by just highlighting one name at a time.
> I think this might have value, especially if to could bounce back and
> forth between both schemes. Is anyone aware of tools like this for
> Python? Bonus points for pointers to an Emacs implementation.
--
Terry Jan Reedy
> My son sent me a link to an essay about highlighting program data
> instead of keywords:
>
> https://medium.com/p/3a6db2743a1e/
What it is doing is color coding user-supplied identifiers, with
different color for each one. I found that confusing to read. The only
use I can see for this is to track the usage of a particular name, but
that would be better done by just highlighting one name at a time.
> I think this might have value, especially if to could bounce back and
> forth between both schemes. Is anyone aware of tools like this for
> Python? Bonus points for pointers to an Emacs implementation.
--
Terry Jan Reedy
Re: Highlighting program variables instead of keywords? topic
On Mon, Jan 27, 2014 at 11:46 AM, Terry Reedy <(E-Mail Removed)> wrote:
> The only use I can see for this is to track the usage of a particular name,
> but that would be better done by just highlighting one name at a time.
In SciTE, I can put the cursor on a word and hit Ctrl-F3 to find other
instances of that word. If that's not enough, following it up with
Ctrl-Home, F3 will find the first instance of it, and if the program
follows the Define-Before-Use principle, that'll be the definition.
That's usually enough.
ChrisA
> The only use I can see for this is to track the usage of a particular name,
> but that would be better done by just highlighting one name at a time.
In SciTE, I can put the cursor on a word and hit Ctrl-F3 to find other
instances of that word. If that's not enough, following it up with
Ctrl-Home, F3 will find the first instance of it, and if the program
follows the Define-Before-Use principle, that'll be the definition.
That's usually enough.
ChrisA
Re: Highlighting program variables instead of keywords? topic
On Mon, Jan 27, 2014 at 11:51 AM, Chris Angelico <(E-Mail Removed)> wrote:
> On Mon, Jan 27, 2014 at 11:46 AM, Terry Reedy <(E-Mail Removed)> wrote:
>> The only use I can see for this is to track the usage of a particular name,
>> but that would be better done by just highlighting one name at a time.
>
> In SciTE, I can put the cursor on a word and hit Ctrl-F3 to find other
> instances of that word. If that's not enough, following it up with
> Ctrl-Home, F3 will find the first instance of it, and if the program
> follows the Define-Before-Use principle, that'll be the definition.
> That's usually enough.
>
> ChrisA
That said, though, I grew up without syntax highlighting of any sort,
and didn't think it particularly important; but now that I have
editors with all those sorts of features, I do find them handy. So
it's possible that a system like this would be of value if once the
programmer gets used to it.
ChrisA
> On Mon, Jan 27, 2014 at 11:46 AM, Terry Reedy <(E-Mail Removed)> wrote:
>> The only use I can see for this is to track the usage of a particular name,
>> but that would be better done by just highlighting one name at a time.
>
> In SciTE, I can put the cursor on a word and hit Ctrl-F3 to find other
> instances of that word. If that's not enough, following it up with
> Ctrl-Home, F3 will find the first instance of it, and if the program
> follows the Define-Before-Use principle, that'll be the definition.
> That's usually enough.
>
> ChrisA
That said, though, I grew up without syntax highlighting of any sort,
and didn't think it particularly important; but now that I have
editors with all those sorts of features, I do find them handy. So
it's possible that a system like this would be of value if once the
programmer gets used to it.
ChrisA
vendredi 24 janvier 2014
[Q] How does the trade in program work? topic
It asks for proof of purchase. Is it for the Moto X or for the phone I'm trading in; both? Can it be combined with the sale on Monday? And can it further be combined with the friends promo code?
Inscription à :
Articles (Atom)