Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Interests
C++
Favorite Forums
Favorite Tags
Member Avatar for Yahia Farghaly

I am trying to reverse a word using pointers but the problem that the following line cause error:access violation writting location 0x000... *temp = *(n+len); the full code #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<Windows.h> #include<string.h> void re(char *n){ int len = strlen(n); char *temp=NULL; while (len != 0){ *temp = *(n+len); …

Member Avatar for janijani7
0
288
Member Avatar for Yahia Farghaly

Does compound literals techinque reserve a memory ? if i say int x; x=(int){1}+(int){2}; or total_sum=sum_arr((int[]){1,2,3}); and what's the best situation to use this techinque ?

Member Avatar for Yahia Farghaly
0
82
Member Avatar for Yahia Farghaly

hi all, i have started recently learning c# and when i do some code using the hashtable, i could n't get the value of a particular key we can get a value for a particular key but do we can do the verse ?

Member Avatar for Lucaci Andrew
0
131
Member Avatar for Yahia Farghaly

Hi all, can someone help knowing the difference between char *st="myname"; char st[]="myname"; i know they both is array of charachers but the difference when dealing with them and how they are in memory ? Thanks.

Member Avatar for Yahia Farghaly
0
337
Member Avatar for Yahia Farghaly

hi all, while i am learning the overloading operators ,i studied the following syntax ostream&operator<<(ostream &, classname&); i understand how it works but only something that i don't understand is the use of (&) with ofstream class ?at this point what's happening ? also i notice that i can do …

Member Avatar for Moschops
0
425
Member Avatar for Yahia Farghaly

Hi all, for the code shown below , every thing is okey except few things i output the obj[i](sure the [] is overloaded) with the overloaded << but inside the operator definition i was outputing the m data member of the reference object,how ever it also outputs the m data …

Member Avatar for David W
0
171
Member Avatar for Yahia Farghaly

Hi,can anyone help me how to start programming With MFC C++ ? and what's the best learning source for it? and is it good to learn that ? i am have some good experience with c++ and i am looking forward to design some gui programs ,i know that there …

Member Avatar for Moschops
0
739
Member Avatar for Yahia Farghaly

Hi there, i was trying to make a program (to do)using list class here is the code #include<iostream> using namespace std; #include<list> #include<string> void display(const list<string>& lsy){ list<string>::const_iterator iter = lsy.cbegin(); int i = 0; while (iter != lsy.end()){ cout <<++i<<"- "<< *iter << endl; ++iter; } } void add(list<string>&ls){ …

Member Avatar for Yahia Farghaly
0
324