Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 5:41
professionalglennPattonWork35-Jul-12 5:41 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 5:49
mvePete O'Hanlon5-Jul-12 5:49 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 5:56
professionalglennPattonWork35-Jul-12 5:56 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 6:46
mvePete O'Hanlon5-Jul-12 6:46 
Questionhow to bind datasource to treeview control Pin
mahendraprabu.m4-Jul-12 4:48
mahendraprabu.m4-Jul-12 4:48 
QuestionRe: how to bind datasource to treeview control Pin
Richard MacCutchan4-Jul-12 4:58
mveRichard MacCutchan4-Jul-12 4:58 
QuestionRe: how to bind datasource to treeview control Pin
Pete O'Hanlon4-Jul-12 6:45
mvePete O'Hanlon4-Jul-12 6:45 
Generali m getting an error while using array, please help me Pin
somasekhara7774-Jul-12 1:56
somasekhara7774-Jul-12 1:56 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace multiplication
{
    class Program
    {
        static void Main(string[] args)
        {
            int[,] a = new int[2, 2] { { 1, 2 }, { 3, 4 } };
            int[,] b = new int[2, 2] { { 1, 2 }, { 3, 4 } };
            int[,] c = new int[2, 2];
            for (int i = 0; i <= a.Length; i++)
            {
                for (int j = 0; j <= b.Length; j++)
                {
                  c[i, j] = (a[i, j] * b[i, j])+(a[i,,j+1]*b[i+1,,j]);
                    Console.Write(c[i, j]+ " " );

                }
                Console.WriteLine();
            }
                Console.ReadLine();

        }
    }
}
erorr is like 
Index was outside the bounds of the array.

j somasekhar


modified 4-Jul-12 8:36am.

SuggestionRe: i m getting an error while using array, please help me Pin
Eddy Vluggen4-Jul-12 2:05
professionalEddy Vluggen4-Jul-12 2:05 
AnswerRe: i m getting an error while using array, please help me Pin
markovl4-Jul-12 2:16
markovl4-Jul-12 2:16 
AnswerRe: i m getting an error while using array, please help me Pin
Pete O'Hanlon4-Jul-12 2:16
mvePete O'Hanlon4-Jul-12 2:16 
GeneralRe: i m getting an error while using array, please help me Pin
markovl4-Jul-12 2:21
markovl4-Jul-12 2:21 
GeneralRe: i m getting an error while using array, please help me Pin
Pete O'Hanlon4-Jul-12 2:32
mvePete O'Hanlon4-Jul-12 2:32 
AnswerRe: i m getting an error while using array, please help me Pin
Luc Pattyn4-Jul-12 11:36
sitebuilderLuc Pattyn4-Jul-12 11:36 
GeneralProblem with Writing FileStream Pin
Software20074-Jul-12 0:01
Software20074-Jul-12 0:01 
GeneralRe: Problem with Writing FileStream Pin
Richard MacCutchan4-Jul-12 0:21
mveRichard MacCutchan4-Jul-12 0:21 
GeneralRe: Problem with Writing FileStream Pin
Pete O'Hanlon4-Jul-12 0:29
mvePete O'Hanlon4-Jul-12 0:29 
GeneralRe: Problem with Writing FileStream Pin
Richard MacCutchan4-Jul-12 3:47
mveRichard MacCutchan4-Jul-12 3:47 
GeneralRe: Problem with Writing FileStream Pin
Pete O'Hanlon4-Jul-12 4:05
mvePete O'Hanlon4-Jul-12 4:05 
GeneralRe: Problem with Writing FileStream Pin
Richard MacCutchan4-Jul-12 4:20
mveRichard MacCutchan4-Jul-12 4:20 
GeneralRe: Problem with Writing FileStream Pin
Pete O'Hanlon4-Jul-12 4:40
mvePete O'Hanlon4-Jul-12 4:40 
GeneralRe: Problem with Writing FileStream Pin
Luc Pattyn4-Jul-12 1:33
sitebuilderLuc Pattyn4-Jul-12 1:33 
GeneralRe: Problem with Writing FileStream Pin
Software20074-Jul-12 7:16
Software20074-Jul-12 7:16 
GeneralRe: Problem with Writing FileStream Pin
Trak4Net4-Jul-12 7:47
Trak4Net4-Jul-12 7:47 
GeneralRe: Problem with Writing FileStream Pin
Luc Pattyn4-Jul-12 8:02
sitebuilderLuc Pattyn4-Jul-12 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.