Click here to Skip to main content
16,007,687 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralLNK2005 Error. Pin
adarsh_sebiz1-Feb-04 19:05
adarsh_sebiz1-Feb-04 19:05 
GeneralRe: LNK2005 Error. Pin
Mike Dimmick2-Feb-04 2:36
Mike Dimmick2-Feb-04 2:36 
GeneralRe: LNK2005 Error. Pin
adarsh_sebiz10-Feb-04 1:46
adarsh_sebiz10-Feb-04 1:46 
Generalargument and matrix Pin
Dheeraj Mehta1-Feb-04 18:10
Dheeraj Mehta1-Feb-04 18:10 
Questionset /clr option in MFC application? Pin
scoct31-Jan-04 21:10
scoct31-Jan-04 21:10 
Generalreading inputs Pin
Liyana30-Jan-04 12:13
Liyana30-Jan-04 12:13 
GeneralRe: reading inputs Pin
Roger Wright3-Feb-04 4:25
professionalRoger Wright3-Feb-04 4:25 
GeneralRe: reading inputs Pin
Nik Vogiatzis18-Feb-04 17:22
Nik Vogiatzis18-Feb-04 17:22 
hmmm...

i won't give you the 'exact code' because this sounds like a homework question, but i will do this for you...

1. a [8x1] matrix is the transpose of a [1x8] matrix, hence they are identical (in the case of [qx1]/[1xq] matrices).

2. if you use a 'vector' type like a queue or a stack, then this will be your 'vector', else just create an array, i.e. char a[8];

3. assuming the number you are talking about is a character that represents a hex number like "^B" = 0x02h or "^J" = 0x08h, then what you will need to do is to bitwise 'AND' (which is a singular & not the AND operator which is &&) each bit position to find out whether the bit is set or not...
eg:
10010110 &<br />
     00000010<br />
     ========<br />
     00000010<br />

to do that calculation you would do something like
(var & 0x02)? 1:0;

i.e. if the result of the bitwise & is true return 1 else return 0.

so, you will need to bitwise AND it with
0x01   // 2^0 = 0000 0001
0x02   // 2^1 = 0000 0010
0x04   // 2^2 = 0000 0100
0x08   // 2^3 = 0000 1000
0x10   // 2^4 = 0001 0000
0x20   // 2^5 = 0010 0000


that should give you enough of the pattern for you to do the rest yourself...

4. finally, you can place the result of the bit in any order you want...

as for storing the ASCII character in an array first, this is highly unnecessary, you should be able to process each character as it comes through the stream...

try that, show me your results and if it looks like you need more help, we can try from there...

hope this 'enlightens' you a little more... the joy of programming is the 6 weeks of frustration followed by a fleeting 'ah' that signals the moment of complete enlightenment... it is the drug all programmers work towards... Smile | :)

cheers and good luck
nik

Nik Vogiatzis
PhD Candidate: University of South Australia
+++++++++++++++++++++++++++
Developing new generation Traffic Micro-simulation Tools for Traffic Engineers
em: nikolaos.vogiatzis@unisa.edu.au
GeneralC++ and Database Pin
vin29-Jan-04 19:22
vin29-Jan-04 19:22 
GeneralRe: C++ and Database Pin
Selvam R2-Feb-04 6:31
professionalSelvam R2-Feb-04 6:31 
GeneralVirtual destructor causes LNK2001 !!! Pin
balkanese27-Jan-04 22:18
balkanese27-Jan-04 22:18 
Generalswfsource: wanted code regarding creating buttons, please help! Pin
adarsh_sebiz26-Jan-04 23:29
adarsh_sebiz26-Jan-04 23:29 
Questionlicensed control? Pin
Roger Alsing26-Jan-04 22:56
Roger Alsing26-Jan-04 22:56 
QuestionHow can I get the name of current theme from OS? Pin
rafamarmar25-Jan-04 5:36
rafamarmar25-Jan-04 5:36 
Questionclass wide arrays? Pin
paulcsf24-Jan-04 12:40
paulcsf24-Jan-04 12:40 
GeneralServer 2003 DDK, ZMODEM Pin
Shahin7723-Jan-04 6:42
Shahin7723-Jan-04 6:42 
GeneralRegistering Key events when minimized Pin
Tank_Aviator22-Jan-04 18:22
Tank_Aviator22-Jan-04 18:22 
GeneralUsing old STRUCTs in managed classes Pin
Nik Vogiatzis21-Jan-04 19:47
Nik Vogiatzis21-Jan-04 19:47 
GeneralDeclaring indexed property in C++ Class Library Pin
fin21-Jan-04 12:51
fin21-Jan-04 12:51 
GeneralMystery solved Pin
fin21-Jan-04 17:23
fin21-Jan-04 17:23 
GeneralConverting a Byte[ ] into a User Defined Structure Pin
olstuff21-Jan-04 6:46
sussolstuff21-Jan-04 6:46 
GeneralRe: Converting a Byte[ ] into a User Defined Structure Pin
toxcct27-Jan-04 3:57
toxcct27-Jan-04 3:57 
GeneralDynamically invoking classes Pin
Tank_Aviator20-Jan-04 12:49
Tank_Aviator20-Jan-04 12:49 
GeneralRe: Dynamically invoking classes Pin
Nik Vogiatzis21-Jan-04 19:41
Nik Vogiatzis21-Jan-04 19:41 
Generalswfsource: errorLNK2005 Pin
adarsh_sebiz18-Jan-04 18:15
adarsh_sebiz18-Jan-04 18:15 

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.