Forum: Computer Science Oct 25th, 2008 |
| Replies: 0 Views: 493 Hi ;
How can I show a nested method call(like getInsertedCourses method below) in a UML sequence diagram ???
static void Main(...)
{
Student s = new Student(...);
Course[] courses =... |
Forum: C++ Jan 1st, 2008 |
| Replies: 7 Views: 2,546 Thanks for your help but these links interested in binary search trees but I'm trying to generate only binary tree , not binary search tree...(and it has to be balanced) |
Forum: C++ Dec 28th, 2007 |
| Replies: 7 Views: 2,546 Sorry, I couldn't told my problem clearly...
I meant the node values are produced randomly(A,K,G,B,...etc.) not the node positions.
In my tree , every node has to have two child nodes until... |
Forum: C++ Dec 28th, 2007 |
| Replies: 7 Views: 2,546 Hi all;
I have to create a Binary Tree(not a Binary Search Tree) whose node values are produced randomly...
If I had to create a Binary Search Tree , I could determine where the current node has... |
Forum: C Nov 9th, 2007 |
| Replies: 6 Views: 1,812 I think I will choose the convenience of validating before evaluation.If I were working with numbers and if the output doesn't need to be in the form of which was indicated my previous post(i.e if it... |
Forum: C Nov 9th, 2007 |
| Replies: 6 Views: 1,812 Actually I'm evaluating it like using low level codes.
For example : A B C * + D E - / must be evaluated like below where LD means loading a value to a register, AD means addition,SB means... |
Forum: C Nov 9th, 2007 |
| Replies: 6 Views: 1,812 Honestly I didn't profiled it multiple executions.That's a simple assignmet which I've got and it wasn't indicated wheter we have to control the postfix expression is valid.Probably the teacher won't... |
Forum: C Nov 9th, 2007 |
| Replies: 6 Views: 1,812 Hi all...
How can I control any postfix expression is valid or not???
I controlled it using a stack(the code is below) and it worked but I 'm using the stack again after clearing it for evaluation... |
Forum: C# Jul 20th, 2007 |
| Replies: 2 Views: 926 Look at the Anchor and Dock properties in the properties window... |
Forum: C# Jul 18th, 2007 |
| Replies: 2 Views: 884 Go to the solution explorer , chose the Program.cs and change this line "Application.Run(new Form1());" |
Forum: C# Jul 17th, 2007 |
| Replies: 3 Views: 3,881 Try to read the table row by row and compare user name and password for each read.Please look at the code sample below...
private void button1_Click(object sender, EventArgs e)
{
... |
Forum: C# Jul 12th, 2007 |
| Replies: 3 Views: 4,995 Yes you can create an array of textboxes.Look at the code below.
public partial class Form1 : Form
{
TextBox[] txt = new TextBox[3]; //Creating an array of textbox //references... |
Forum: C# Jul 11th, 2007 |
| Replies: 4 Views: 6,648 Set your panel's Anchor property to Top,Bottom,Left,Right in the properties window so when you resize your form at the runtime your panel will be resized with your form consequently... |
Forum: C++ Jul 4th, 2007 |
| Replies: 4 Views: 992 Wrtie the "itr = strv.begin();" after the cout...
I think when you initialize itr = strv.begin(); at the beginning of the code the itr points a random value at memory and when cout attempts to... |
Forum: C++ Jun 30th, 2007 |
| Replies: 4 Views: 703 Look at your array declaration.(int num[i], what that means???You must initialize the array with its size) Ensure that the "size" variable should less or equal than the array size and start your loop... |
Forum: C# Jun 24th, 2007 |
| Replies: 4 Views: 935 www.flazx.com (http://www.flazx.net) |
Forum: C++ Jun 15th, 2007 |
| Replies: 4 Views: 1,046 struct Song
{
string title;
int track;
};
struct Album
{
string albumName;
string artistName; |
Forum: C++ Jun 14th, 2007 |
| Replies: 23 Views: 9,145 I mean You're welcome...:D:D:D |
Forum: C++ Jun 14th, 2007 |
| Replies: 23 Views: 9,145 Your welcome and look at this link:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351 |
Forum: C++ Jun 14th, 2007 |
| Replies: 23 Views: 9,145 Your output is wrong because you're starting the inner for loop at 0 every time.So when a[x] == ' ' it's writing start point to ' '.
You should save the ' ' character's index in a variable and... |
Forum: C# Jun 9th, 2007 |
| Replies: 9 Views: 20,212 using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{ |
Forum: Perl May 22nd, 2007 |
| Replies: 7 Views: 12,962 Thanks for the reply and yes this is a school work and i've to do it until Friday...
But I'm still confusing.We only learned the ARGV for run the script with a command by using command-prompt like... |
Forum: Perl May 22nd, 2007 |
| Replies: 7 Views: 12,962 I confused a little...
I don't know these :
local @ARGV = ($file);
local $^I = '.bak';
split(/\s+/) (what's the meaning of \s+???)
We haven't seen that.Can you explain me with... |
Forum: Perl May 21st, 2007 |
| Replies: 7 Views: 12,962 Hi all;
I've to update a record for my hw.I'm trying to use seek function but when I use it, new information(phone number) is being written at the end of file...
Here is the function that I've... |
Forum: C++ May 20th, 2007 |
| Replies: 7 Views: 1,192 I suppose you linked the list faulty...
Can you please post the whole code here???(with your class defination) |
Forum: C++ May 20th, 2007 |
| Replies: 7 Views: 1,192 Be sure temp = start_ptr at the beginning of the CD :: list() function and write the if(temp == NULL) control before the loop otherwise the program always compares the temp == NULL or not.But you're... |
Forum: Perl May 11th, 2007 |
| Replies: 3 Views: 3,097 Sorry for the late reply...
As regard as my question, I 've not any problem about deleting something in an array or a hash.
I just wonder how I can use exists function in an array??? (not in a... |
Forum: Perl May 6th, 2007 |
| Replies: 3 Views: 3,097 Hi all;
I have to control wheter a string is an array element or not.
I tried to exists function but it didn't give me the desired output.
print "Which hotel do you want to remove from... |
Forum: C++ May 1st, 2007 |
| Replies: 3 Views: 2,719 Thanks for your helps...
I've solved the problem with your suggestions...
My problem was:
I've copied the three files in the same directory and tried to compile "main.cpp"
After I've... |
Forum: C++ May 1st, 2007 |
| Replies: 3 Views: 2,719 Hi all;
I'm new to C++ and OOP.
My problem is:
I ' ve created the header file time1.h and included it in my project but when I tried to compile it gave me linker errors in VC++ 6.0.
Here is... |
Forum: C Apr 28th, 2007 |
| Replies: 18 Views: 2,365 What do you mean???
The above code returns sum of fab()'s return value for n - 1 and n - 2... |
Forum: C++ Apr 22nd, 2007 |
| Replies: 5 Views: 947 It's working correctly...
Just write "again = 0" before the "char x" and trace your program again...
When you enter an invalid choice, "again" variable equals to 1 and program goes to the... |
Forum: C++ Apr 22nd, 2007 |
| Replies: 5 Views: 947 assign zero to the variable "again" when the program shortly after enters the loop...(For example : Between the lines 5 - 6) |
Forum: C Apr 22nd, 2007 |
| Replies: 4 Views: 910 This is a simple character and string question.If you look at your book or searching a little, I'm sure you'll find your question's answer...
(Try to search "character handling library") |
Forum: C Apr 22nd, 2007 |
| Replies: 3 Views: 3,063 It isn't neccessary a nested loop.You can do it with one loop like the following code...(Assume that j = 0 at starting)
for(i=0 ;i<=num; i++) // loop to store values in array
{
if (str[i] !=... |
Forum: C++ Apr 15th, 2007 |
| Replies: 11 Views: 7,423 Thanks for your answers again.I understood it better.(with the help of drawing diagrams of memory on a paper...:) ) |
Forum: C++ Apr 14th, 2007 |
| Replies: 11 Views: 7,423 I accept I babbled a little but when I thought the 2D arrays' and pointers' mental I really understood it.
Thanks for your helps...:cool: |
Forum: C++ Apr 14th, 2007 |
| Replies: 11 Views: 7,423 Hi all;
I've to use a dynamic array(2D) in my program in C.
I've read some tutorials about this and I understood its mental.But still there exist a few points which I didn't understand.
Here... |
Forum: Python Apr 11th, 2007 |
| Replies: 6 Views: 1,964 Thanks for your answers.I'll appreciate them... |
Forum: Python Apr 10th, 2007 |
| Replies: 6 Views: 1,964 Hi all;
My question is which IDE do you recommend for editing Python codes on WindowsXP???
I've installed its interpreter(2.5) but I don't have any idea about the IDE.(except ActivePython)
... |