Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get allocated blocks for VHDx? queryChangesVirtualDisk gives ACCESS DENIED. Pin
Randor 19-Aug-20 21:47
professional Randor 19-Aug-20 21:47 
QuestionMicrosoft Media Foundation AAC Decoder using C++ Pin
sabid12-Aug-20 18:32
sabid12-Aug-20 18:32 
AnswerRe: Microsoft Media Foundation AAC Decoder using C++ Pin
Richard MacCutchan12-Aug-20 21:04
mveRichard MacCutchan12-Aug-20 21:04 
AnswerRe: Microsoft Media Foundation AAC Decoder using C++ Pin
11917640 Member 2-Sep-20 1:06
11917640 Member 2-Sep-20 1:06 
QuestionIs there an entry point for CppUnitTestFramework unit tests ? Pin
Maximilien11-Aug-20 10:01
Maximilien11-Aug-20 10:01 
AnswerRe: Is there an entry point for CppUnitTestFramework unit tests ? Pin
Richard MacCutchan11-Aug-20 22:23
mveRichard MacCutchan11-Aug-20 22:23 
GeneralRe: Is there an entry point for CppUnitTestFramework unit tests ? Pin
Maximilien12-Aug-20 7:31
Maximilien12-Aug-20 7:31 
Questioncomputer science Pin
Member 1491094810-Aug-20 0:26
Member 1491094810-Aug-20 0:26 
An engineer stores a FIFO queue of bit in an int on a platform with 32bit ints and 8-bit chars using the following C++ class
Class bit queue{
Int valid_bits;   //the number of valid bits held in queue
Int queue;        //least significant bits is most recent bit added
Public:
Bitqueue(): valid_bits(0), queue(0) {}
Void push(int val, int bsize);
Int pop(int bsize);
Int size();
};

1.Write implementation of bitqueue::size which should return the number of bits currently held in queue
2.Write an implementation of bitqueue::push which places the bsize least significant bits from val onto queue and update valid bits. An exception should be thrown in cases where data would otherwise be lost.
3.Write an implementation of bitqueue::pop which takes bsize bits from queue, provides them as the bsize least significant bits in the return value and updated valid bits. An exception should be thrown when any requested data is unavailable. 

AnswerRe: computer science Pin
Daniel Pfeffer10-Aug-20 0:45
professionalDaniel Pfeffer10-Aug-20 0:45 
AnswerRe: computer science Pin
Richard MacCutchan10-Aug-20 3:24
mveRichard MacCutchan10-Aug-20 3:24 
Questionsorce code grid line Pin
SADEGH20771-Aug-20 7:44
SADEGH20771-Aug-20 7:44 
AnswerRe: sorce code grid line Pin
Victor Nijegorodov1-Aug-20 8:15
Victor Nijegorodov1-Aug-20 8:15 
GeneralRe: sorce code grid line Pin
SADEGH20771-Aug-20 8:24
SADEGH20771-Aug-20 8:24 
GeneralRe: sorce code grid line Pin
SADEGH20771-Aug-20 8:25
SADEGH20771-Aug-20 8:25 
GeneralRe: sorce code grid line Pin
Victor Nijegorodov1-Aug-20 8:32
Victor Nijegorodov1-Aug-20 8:32 
GeneralRe: sorce code grid line Pin
SADEGH20771-Aug-20 10:09
SADEGH20771-Aug-20 10:09 
GeneralRe: sorce code grid line Pin
Victor Nijegorodov1-Aug-20 10:37
Victor Nijegorodov1-Aug-20 10:37 
GeneralRe: sorce code grid line Pin
SADEGH20772-Aug-20 7:03
SADEGH20772-Aug-20 7:03 
GeneralRe: sorce code grid line Pin
Victor Nijegorodov2-Aug-20 7:11
Victor Nijegorodov2-Aug-20 7:11 
GeneralRe: sorce code grid line Pin
SADEGH20772-Aug-20 7:14
SADEGH20772-Aug-20 7:14 
GeneralRe: sorce code grid line Pin
Victor Nijegorodov2-Aug-20 7:28
Victor Nijegorodov2-Aug-20 7:28 
GeneralRe: sorce code grid line Pin
Dave Kreskowiak1-Aug-20 12:03
mveDave Kreskowiak1-Aug-20 12:03 
GeneralRe: sorce code grid line Pin
David Crow3-Aug-20 2:58
David Crow3-Aug-20 2:58 
GeneralRe: sorce code grid line Pin
Greg Utas3-Aug-20 3:06
professionalGreg Utas3-Aug-20 3:06 
AnswerRe: sorce code grid line Pin
Richard MacCutchan3-Aug-20 5:12
mveRichard MacCutchan3-Aug-20 5:12 

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.