View Full Version : Help in programming in ADA, C++
queeny
12-06-2008, 03:21 PM
i need some help in programming guys,does any one here able to help me,im in Germany and ims tudying computer science
salam
Mohamed_Esam
12-11-2008, 04:30 PM
Salam Aleikom Queeny;
Ich bin Mohamed Esam, Unterricht Assistant in Deutsche Uni. in Kairo. "Information Tech Fakultät"
Ja, sag bitte deine frage, vielleicht kann ich helfe.
Salam
AlQurtubi
12-12-2008, 01:51 AM
I am a programmer as well sister. What kind of help you need?
I never knew we have too much programmers here :)
queeny
12-12-2008, 08:05 PM
salam alikom guys
i thank u for ur help,i m studying this semster Ada langauge which im sure that no body works with it now but they teach i to us in the university as basis and we never use it again,so i will be contacting u guys soon ,cuz i have a LOT of questions,,im trying sto study it a lon but i need kinda course in it or something,does anybody have any idea how to get it easy.i mean would any body here able to give me cours in it,,,or u would prefer only thru emails,,,
i thank u very much ,,
salam
Al-Kashmiri
12-12-2008, 08:21 PM
As-salaamu `alaykum.
I always thought Ada was an assembly language... Didn't think it was still taught today! Anyone here proficient or has experience with Matlab?
AdamMuslim
12-12-2008, 08:37 PM
Salam All,
I love programming though sometimes it is not that easy :SMILY259:
I think coding is rather an attitude than a matter of language. If you are a geek and you have that attitude you will find coding easy and passionate. The choice of the programming language is a secondary issue and it will depends on what you are willing to do.
I’ve started learning MatLab a long time ago. I think I’ve produced thousands of lines of MatLab code. What are you exactly looking for brother Al-Kashmiri?
Wassalam
Al-Kashmiri
12-12-2008, 08:50 PM
Salam All,
I love programming though sometimes it is not that easy :SMILY259:
I think coding is rather an attitude than a matter of language. If you are a geek and you have that attitude you will find coding easy and passionate. The choice of the programming language is a secondary issue and it will depends on what you are willing to do.
I’ve started learning MatLab a long time ago. I think I’ve produced thousands of lines of MatLab code. What are you exactly looking for brother Al-Kashmiri?
Wassalam
As-salaamu `alaykum.
Woah I wasn't expecting this reply, especially so soon. If you can help sister Queeny I think that would better for now, since it's her thread. Basically, I've only started using Matlab and need to run/test some code out. I'm not actually sure how to do that yet (I've been too busy learning ActionScript 3.0)! I was meant to see my supervisor this week to arrange for some help, but now we have broken up for Christmas holidays and so I don't want to wait for 3 weeks. I just need general help in understanding Matlab, learning wise I have only briefly covered matrix manipulation and graph plotting... Not much I know.
Jazaak Allaah khayran. All praise and thanks to Allaah who has united me with a brother who knows some Matlab! :)
Was-salaam
AdamMuslim
12-12-2008, 09:41 PM
MatLab is a very easy language to learn. A good start would be to navigate throughout the help. The following lines of code serve as an illustration. It shows how to write MatLab functions that you can use an indefinite number of time. All what you have to do is to copy-past the code into a new M-file and save it on the workspace of MatLab. In the command window you may then write
>> a= 2; b=3; c=1 ; qeq(a,b,c); (the ">>" are not part of the code !!! :SMILY126: )
which produces the following result:
two distinct real roots
------------------------------------------
The first root is : -4.000000
The second root is : -2.000000
------------------------------------------
You may also type “ help qeq” in the command window to get the help about the function qeq(). That is
>> help qeq
Her is the code:
function x = qeq(a,b,c)
% qeq for Quadratic EQuation
% a, b, c are the coefficients of the equation
% such that ax^2 + bx + c =0
% Author: AdamMuslim
delta = b^2-4*a*c;
if delta < 0
disp('Two complex roots');
elseif delta == 0
disp('double root');
x1 = -b/2*a;
x2 = x1;
% the output x
x = x1;
% print output
disp('------------------------------------------');
disp(sprintf(' The double root is : %f %f',x1));
disp('------------------------------------------');
else
disp('two distinct real roots');
x1 = (-b-sqrt(delta))/2*a;
x2 = (-b+sqrt(delta))/2*a;
% the output x
x = [x1 x2];
% print output
disp('------------------------------------------');
disp(sprintf(' The first root is : %f %f',x1));
disp(sprintf(' The second root is : %f %f',x2));
disp('------------------------------------------');
end
AdamMuslim
12-12-2008, 09:48 PM
I wrote the previous lines of code for my little brother to show him how he can concretely solve a quadratic equation in the real line. Please report bugs if any :SMILY259:
Al-Kashmiri
12-12-2008, 10:04 PM
As-salaamu `alaykum.
Jazaak Allaahu khayran. Yes it is easy I agree, but I don't no where to move on from. What I mean, I've learnt some basics, but don't no where to continue especially with the code I need to test, as eventually I will have to implement new algorithms into it...
Was-salaam
queeny
12-13-2008, 04:15 PM
salam
yes bro,Ada is tought as langage ,no body use it but we studyit as basics of programming,very stupid but this how it goes,,,
is that mean that no body can help me,,,
Al-Kashmiri
12-13-2008, 04:31 PM
As-salaamu `alaykum...
If you want, I can change your thread title to Help programming in ADA or something similar in order to bring more attention to ADA users?
queeny
12-14-2008, 05:36 AM
good idea
do it
thx
queeny
12-14-2008, 08:35 AM
salam guys
anybody knows C++,,i may need it at first,but this is will be during voice msn,i cant learn during emails,i have books and idint work
thx
webzaheer
12-14-2008, 08:53 AM
Assalamualaikum,
I know C++ a little bit.
i can help you inshallah with whatever knowledge i have. :)
AdamMuslim
12-14-2008, 09:47 AM
Salam sister,
Did you ever heard of "learning by doing"? It is always true but it applies perfectly when it comes to programming. All I know about coding I've learned it by myself. You have to try as much as it takes till it becames clear in your mind without getting bored because it will takes time before you reach your goal. This is the best advice that I can give you.
There is lots of materiel on the net that you can start with. If you can read in frensh I can provid you with some good tutorials.
http://www.it.bton.ac.uk/staff/je/adacraft
http://www.adaic.com
Wassalam,
Mohamed_Esam
12-15-2008, 05:47 AM
Ja, Ich finde dieses Tutorial sehr gut über C++. http://www.cplusplus.com/doc/tutorial
Also Ich kann dir hilfe in einige themen in C++.
aber send für mich besser an mohesam84-at-yahoo.com
Salam Aleikom
queeny
12-15-2008, 04:57 PM
sala m brothers
i thank u very much,i will do my best and if i need questions i will come to u
thx and have fun
salam
Al-Kashmiri
12-15-2008, 06:05 PM
As-salaamu `alaykum
Sorry for the delayed thread title change, I didn't notice your response. Akhi Adam, I agree that learning by doing is the best and somewhat only method of learning effectively. What I mean is, you don't learn how to problem solve by reading a book, sure it'll teach you a bit, but some skills are obtained best by practice...
Oh and as soon as my notebook gets back to me, I will be contacting you regarding matlab. :)
Was-salaam
queeny
01-10-2009, 10:15 AM
God it is really hard to learn by doing
but i believe women are more intelligent than men :)
AdamMuslim
02-14-2009, 02:53 PM
Salam,
Sister queeny, after all this time I guess that you are an expert now :)
Brother Al-Kashmiri: any time brother, just send me your code.
Wassalam
queeny
02-15-2009, 06:23 AM
well..not really :) r u afraid to beat u hehe:)
AdamMuslim
02-15-2009, 09:58 AM
Salam sister,
why not ?
queeny
02-16-2009, 05:41 AM
wesalam bro
i still have some diffculties :(
AlQurtubi
03-17-2009, 07:44 AM
i have seen this thread VERY VERY late else i would have surely helped you sister.
queeny
03-20-2009, 07:50 PM
u still can help me bro if u can
AlQurtubi
03-22-2009, 08:15 PM
Ok, how can i help you sister ? What exactly you want to do?
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.