Click here to Skip to main content
15,884,298 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: To take input for n number of arrays and print it. Pin
Richard MacCutchan10-Dec-17 6:52
mveRichard MacCutchan10-Dec-17 6:52 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 7:19
Tarun Jha10-Dec-17 7:19 
AnswerRe: To take input for n number of arrays and print it. Pin
Member 1332249811-Dec-17 8:55
Member 1332249811-Dec-17 8:55 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha11-Dec-17 10:56
Tarun Jha11-Dec-17 10:56 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha16-Dec-17 5:41
Tarun Jha16-Dec-17 5:41 
QuestionHow do I keyboard input in OpenGL Pin
Mr. Anup Roy1-Dec-17 3:57
professionalMr. Anup Roy1-Dec-17 3:57 
QuestionHow to get cpu speed and ram manufaturer C Languae? Pin
Uzair Ahmad12-Nov-17 4:56
Uzair Ahmad12-Nov-17 4:56 
AnswerRe: How to get cpu speed and ram manufaturer C Languae? Pin
Afzaal Ahmad Zeeshan1-Dec-17 4:32
professionalAfzaal Ahmad Zeeshan1-Dec-17 4:32 
Do not try to do that, natively.

Instead, consider using the platform specific APIs, such as the Linux APIs for C or the Win32 API on Windows. The benefit is that you will be able to get the information, such as the information about hardware (I am not sure, whether you will be able to dig that much information or not).

Start from somewhere like this,
How to get current CPU and RAM usage in C++? - Stack Overflow
sysinfo(2) - Linux manual page

You would then need to go on other platform APIs such as the Win32, and find out what is offered there. Such as, GetSystemInfo function (Windows) will provide the system info for CPU.

One thing is for sure: What works on Linux with C, is not going to work on Windows and vice versa. Also, none of this guarantees to provide CPU make, or RAM manufacturer name. In most cases, you will have to pull down a complete stream of data, and then parse it to extract the interested portion; such as in this post, How to check processor and cpu details on Linux | Linux.com | The source for Linux information
PERL
$ cat /proc/cpuinfo | grep vendor | uniq
vendor_id : GenuineIntel

$ cat /proc/cpuinfo | grep 'model name' | uniq
model name : Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz

$ lscpu
Architecture: x86_64
Which shows, that you will have to extract and then parse the data to show the interested part; otherwise, that doesn't quite work that way.

Good luck Googling. Smile | :)
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

QuestionHow to Disable open drop down Pin
yaswanthdasari24-Oct-17 21:36
yaswanthdasari24-Oct-17 21:36 
SuggestionRe: How to Disable open drop down Pin
Richard MacCutchan24-Oct-17 22:44
mveRichard MacCutchan24-Oct-17 22:44 
GeneralRe: How to Disable open drop down Pin
yaswanthdasari25-Oct-17 0:38
yaswanthdasari25-Oct-17 0:38 
AnswerRe: How to Disable open drop down Pin
Daniel Pfeffer25-Oct-17 1:11
professionalDaniel Pfeffer25-Oct-17 1:11 
GeneralRe: How to Disable open drop down Pin
yaswanthdasari25-Oct-17 23:50
yaswanthdasari25-Oct-17 23:50 
QuestionHow To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 21:50
Member 1347149317-Oct-17 21:50 
QuestionRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan17-Oct-17 21:58
mveRichard MacCutchan17-Oct-17 21:58 
AnswerRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 22:09
Member 1347149317-Oct-17 22:09 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan17-Oct-17 22:12
mveRichard MacCutchan17-Oct-17 22:12 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 22:29
Member 1347149317-Oct-17 22:29 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan17-Oct-17 22:45
mveRichard MacCutchan17-Oct-17 22:45 
AnswerRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt17-Oct-17 22:44
professionalJochen Arndt17-Oct-17 22:44 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 23:13
Member 1347149317-Oct-17 23:13 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt17-Oct-17 23:29
professionalJochen Arndt17-Oct-17 23:29 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan18-Oct-17 0:16
mveRichard MacCutchan18-Oct-17 0:16 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149318-Oct-17 0:58
Member 1347149318-Oct-17 0:58 
QuestionRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan18-Oct-17 1:18
mveRichard MacCutchan18-Oct-17 1:18 

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.