|
That code does not even contain the line you were originally asking about, and it makes no sense whatsoever.
|
|
|
|
|
I pasted this code into Visual Studio and it worked (except that tokenindex is declared twice as the strToken array also).
Please provide the converted code, because that's where the error is.
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace genAddrTokenVector
{
class Program
{
public void input()
{
int tokenIndex = 0;
//int cntTokens = 0;
//int iSymbol = -1;
//int prevDictSymbol = -1;
//string a;
//Console.WriteLine("ENTER VALID ADDRESS: "); //gets input
//a = Console.ReadLine();
//converting the address to upper case
//a = a.ToUpper();
// Console.WriteLine(a );
char[] strToken = new char[512];
char[] b = new char[15];
b[0] = 'p';
b[1] = 'l';
b[2] = 'o';
b[3] = 't';
b[4] = '.';
b[5] = '4';
b[6] = '5';
b[7] = ';';
b[8] = 'x';
b[9] = 'x';
b[10] = ';';
b[11] = 'b';
b[12] = '&';
b[13] = 'd';
b[14] = ',';
// string s = new string(b);
//Console.WriteLine(b );
while (b[0] != '\0' )
{
tokenIndex = 0;
while ((b[0] != ' ') && (b[0] != ',') && (b[0] != ';')
&& (b[0] != '#') && (b[0] != '\0')
&& (b[0] != '&') && (b[0] != '-'))
Console.WriteLine(b );
strToken[tokenIndex++] = b[0];
b ++;
}
strToken[tokenIndex] = '\0';
}
class main
{
static void Main(string[] args)
{
Program s = new Program();
s.input();
}
}}}
this is my coverted code... it has some errors as well
the quieter u become more u hear
|
|
|
|
|
It is not strToken[tokenIndex++] what creates the error, it is the next line:
b++
You can not increment an array. What do you want to achieve with this command?
|
|
|
|
|
i have to increment array elements one by one......
then how to implement tat b++ command
thank you very much for your support
the quieter u become more u hear
|
|
|
|
|
The same way as for the strToken char array. You need another int variable as an index for b.
Bar fomos edo pariyart gedeem, agreo eo dranem abal edyero eyrem kalm kareore
|
|
|
|
|
char strToken[512];
this initialisation shows error in one of my program... how to use this code in C#
thanks
the quieter u become more u hear
|
|
|
|
|
You have to write it like this:
char[] strToken = new char[512];
Btw does the answer before solved your b++ problem?
|
|
|
|
|
no even after initialisation it shows this error msg
Error 3 Operator '++' cannot be applied to operand of type 'int[]
the quieter u become more u hear
|
|
|
|
|
As said before, you cannot use the increment operator on an array. If you want to iterate through the b-array also, you have to use another index variable, like intbIndex. Then you can use the increment operator.
|
|
|
|
|
lawrenceinba wrote: strToken[tokenIndex++] = a[0];
I used the below code and it worked fine
int tokenIndex = 0;
string[] strToken = new string[3];
string[] a = new string[2];
a[0] = "9";
strToken[tokenIndex++] = a[0];
Console.WriteLine(strToken[0]);
|
|
|
|
|
i'm trying to modify this article[^] and trying to use it on panel and button but both aint working.
I want to hide the entire form, just controls should appear with their images. I tried to use Transparent Key but as usual it only works good with gif format because it support boolean for alpha.
While in png alpha can be 0-255
is it better idea to use many forms or is there anyway to use it on panel and button ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I don't have an answer to your question but your sig challenge has been solved. I won't post the contents out of fairness to others but will comment, You did what, to whose dog, for how many jelly beans and now he can't walk straight?
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
nope, absolutely wrong...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I want to Search Yahoo group member Email Id.
and post Message to all member in Dot net windows application .
Please Help Me
Thanks
<div class="ForumMod">modified on Friday, January 23, 2009 3:58 AM</div>
|
|
|
|
|
A few seconds search on Yahoo (suprisingly) shows loads of info on using the yahoo groups api. Have you tried there?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Yaar pura question to padh liya karo....
Don't walk as if u rule the world,walk as if u don't care who tha Hell rules the world ...
|
|
|
|
|
inzibharti wrote: Yaar pura question to padh liya karo....
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hai friends,
In my small application iam retrieving the links stored in the IE's favorites folder and write to .doc file. i want to set hyperlink to each of them. Please help me.
Regards,
DJ
|
|
|
|
|
use link label. Did you use it.
|
|
|
|
|
i dont know how to use it..
|
|
|
|
|
|
I can write hex numbers as 0x which range from 0x0 to 0xF
How can I write octa numbers which range from 0 to 7 (Adding 1 to 7 should result 10)
I could do this in C.
Sandeep Bhutani
|
|
|
|
|
Octal number must begin with 0.
For example, 017 is a value 15.
«_Superman_»
|
|
|
|
|
This did not work. I tried int i=010 which should be equal to 8 but was 10.
I also tested in Debug window but 0 prefix has no effect
Sandeep Bhutani
|
|
|
|