Heyyy guys!
now u go like: "oahhh not her againnn! with her stupid Q's!" ;) no don get me wrong this time! no more Q's on C! I'm done!:)
just wanted to say ThanK YoU to all of u guys that were of...
Type: Posts; User: mary18
Heyyy guys!
now u go like: "oahhh not her againnn! with her stupid Q's!" ;) no don get me wrong this time! no more Q's on C! I'm done!:)
just wanted to say ThanK YoU to all of u guys that were of...
Hi,
I'm still stock on the last phase! :(
Mats, I am supposed to do it jus the way I explained it to u! each cell havin the list of all cells to which it is related!
I have a snippet of my prog...
thanx 4 replying!
ok right, sounds like a good idea to have the formula as a part of the cell struct!
and then when loading the file and building the lniked list, the list is also set to be a part...
Hi,
I got it but in a different way!
I have the file in such a way that the data for each row is put in a single line in the file and each value on that line is put inside braces! so each time I...
ok seems like I have to forget about the part related to display,as its gonna take lots of time apparently!
Guys I also have another problem! in this prg the user has 2 options, either to create a...
right on target Mats! "1. Freeing memory that you didn't allocate" was the case for me!
I had put the freeing part out of my switch case with no check on the fact that if there's any mem allocated,...
ok, while I was waiting for ur reply I tried another way of solving it too and it worked! I just put gets("\n") right after the scanf so to bring the newline out of buffer!
Adak I'm having yet...
um... and where do I need to put that? how come u've put a semicolon at the end? is it a typo?!
could u plz extend ur code snippet a little bit so that I can see how this works exactly!?
well I tried it with fgets too; yeah I know gets is the worst choice! I'll try to avoid it!
yes, I do have an scanf before that! cuz its a switch case part, so I have an scanf for reading the case #...
Guys I've got a weird problem in my prog!!! its so crazy cuz I can't get to know whats wrong!:(
I was trying to debug a part of my prg, so stepping over the prg, the way it usually is! everytime...
Yes, that is a peeudo code!
ok so just to make sure, this is exactly what I have to have:
for (int i = 0; i < m ; i++ )
free(2Darray[i]);
free(2Darray);
right?!?
yeah I know, this A to Z part has one of the key roles of my prog!
but I think I finally got it working properly! :)
Now do u guys know how to free a memory allocation done for a 2D array?!
like...
O.K. Adak, I see the point! thanks alot for ur reply! :)
by the way seems like u're kinda interested in the A to Z thing! huh?! ;)
ok now how do we split the letter from the number part, in like AB34?? there should be some str.. predefined funct for that! I was gonna use strtok, but as the sec arg it needs a delimiter and I can...
ok, I see the point now!
how about this? like the ascii code for A through Z is 65 through 90 right?
so if we have a single letter like A thru Z, then we'd do: ascii code of that letter minus 65....
Hey Adak!
thats ok! :) ;)
At least thats the only part u might have got confused about! I'm confused about the whole thing following the calc part! :(
what do u mean? 12 is already an integer number! what coversion r u talkin about!? like int number =12;
Mats, unfortunately I can't see anything! :( like A to Z is 0 to 26, and then the next 26 would be AA to AZ and so on! but I can't figure out a loop for that! like we can't go by comparing what we...
oh and for Adak's idea, how is each cell assigned an ID like AB45 ? and also how do we convert the alhpabetical col into its value so like AB to 28?!
ok Adak, so u mean instead of tracking the cell using the row & col num, we simply compare the ID we have with the ID of each cell and see which one matches???
yes, I know there's alot more to do...
ok yeah, I am goin to use a struct for each cell! but still the stringID part of it needs to be defined, using the function I talked about before!
as Mats said "A management function to...
Hi,
yes I know thats the core of the whole prgm but I've checked it out for many cases and it still seems to be working!
jus one more thing about the calc part, as Mats had pointed out before, its...
Hey!
I finally figured out the calculator program! :) I actually forgot about what I had, and did it over again, a bit differently though, and now it seems to be running properly for most of the...
ok I got it! thanx for the explainations!
yeah you're absolutely right and I'm sorry for asking u such a thing! but I know how to debug my programs, as this is not the first C proj I'm having(well...
Thanks alot 4 ur reply!
ok yes, later I am goin to put all the calc code into a single function and call it whenever needed, but as I said right now its only the prog for a calculator!
about...