General C++ Programming - May 2016 (Page 4)

Writing out numbers in spelled out format
I have to write a program that takes a number from 0 to 4 in spelled out format and converts it into the numerical form. And I have to print out "Not a number ...
May 24, 2016 at 9:54pm
[9 replies] Last: I did it like how Bingocat4 suggested (for the "Three" or "THREE" case... (by DragonOsman)
Determining no. coins from counting each type of coin
As the name says, I have to write a program that tells you how many coins there are by taking the number of each type of coin from the user and adding them all ...
May 24, 2016 at 9:45pm
[no replies]
by lin123
pointers
Assume you have the following layout of the memory. What is the output? Write your answer within the provided box. Assume there are no syntax errors. #include<...
May 24, 2016 at 9:01pm
[5 replies] Last: Could be? Do you know what post-incrementing a pointer does? Take a lo... (by Zhuge)
Declare and Use an Array on One Line
So I'm lazy and want to try and make and use a small lookup array on one line. I've tried this: int cap = {20,50,200,9001}[itemId-1]; but the compiler doesn't...
May 24, 2016 at 7:28pm
[4 replies] Last: That's exactly what I was looking for, thanks! (by ModShop)
Help understanding classes
i need some help understanding how to use different classes togther. Assume that the class "Employee" is already built and just gets the name in a string variab...
May 24, 2016 at 7:06pm
[no replies]
Calculator for Stroustrup's Book - Chapter 3 Exercise
I wrote this calculator code and it's working fine, but I wanted to ask if I'm doing the error-handling fine or not. As it is now, the program will exit immedi...
May 24, 2016 at 6:50pm
[no replies]
Start console app in background?
I've used ShowWindow() with SW_HIDE to hide my console program, but a visible window briefly pops up when the program first starts. I've tried configuring /SUBS...
May 24, 2016 at 1:59pm
[3 replies] Last: subsystem windows entry point maincrtstartup winmain , yes yes. It won... (by Ericool)
by rain
Need help compiling crypto++
Hello I am trying to compile test.cpp which is built-in test file in crypto++ library. I have made makefile but it does not work. "D:/Dropbox/cpp/praks/prak...
May 24, 2016 at 12:50pm
[4 replies] Last: Some things about your make file not related to your problem. # If y... (by TheIdeasMan)
by plexus
Craziest construct I've ever seen
I couldn't even believe it would work. First off: lame, ordinary definitions ... void foo(int i){ std::cout << "foo: " << i + 10 << std::endl; } void ba...
May 24, 2016 at 12:46pm
[2 replies] Last: Haha, good one :)) Anyone wanna pile on, calling a function in the mo... (by plexus)
by dkaip
How can get Hard Disk Serial Number or Processor ID
Hello. How can get Hard Disk Serial Number or Processor ID with c, c++ or wxWidgets? I am looking for code and i dont find any. Any idea? Thanks Jim
May 24, 2016 at 11:16am
[5 replies] Last: Try using the terminal version and use pipes to get the output. See t... (by doug4)
find the least value from the vector
Hi how can I find the least value from the vector vector< list< pair<int, int> > > MST(vertices + 1);
May 24, 2016 at 11:09am
[8 replies] Last: let me try and see..thanks (by csstudent123)
programming
I do html, CSS, JavaScript, SQL, PHP, and XML ,c++ ,pearl,and 30 others i know .There about almost a 1,000 programming language .
May 24, 2016 at 8:43am
[2 replies] Last: @james1402 That's not a question. It's not even bragging, because most... (by plexus)
How do you obtain perfect forward secrecy
How do you obtain perfect forward secrecy if i have the followings? Right now if the attacker is able to obtain the password which is 6 characters. A -> B...
May 24, 2016 at 5:18am
[no replies]
Dynamically allocated 2D array
Hello, I am programming this in visual studio proff. 2015 and I seem to be running into a problem. In my program, the Matrix class used to be made of a large 2...
May 24, 2016 at 3:15am
[15 replies] Last: AAAAHHHHHH! Thank you so much for putting up with me! It works!!! (by slavano)
Error undeclared identifier in ideone
Hi all, I am getting the following error when compiling. It does not recognize the declaration intNumberGuessed above i am guessing. prog.cpp:29:20: error...
May 23, 2016 at 10:36am
[2 replies] Last: It works :) Thanks a lot! (by mastersg7)
Dereferencing operator
Hello all, Whet is the difference between 1) and 2) and what will be the values of them: 1) double h = (*Jill_data) ; 2) double h = *Jill_data ; when w...
May 23, 2016 at 10:21am
[6 replies] Last: You're welcome! (by MikeyBoy)
by norcal
Linked Lists Help
How do I modify this program to track the numbers guessed by the user using a linked list. So basically, i need to keep track if someone already guesses a numbe...
May 23, 2016 at 6:58am
[1 reply] : If you must supply your own linked list type, then the first step is p... (by cire)
image based face recognition
i have write the below code for reading two images from folder and apply fisherface training algorithm on them there are two person images that i have read....c...
May 23, 2016 at 6:09am
[no replies]
by asimkh
Reading from a file into arrays then printing in another file based on book format
Hi I am new to this forum so please help me out and forgive me for writing code etc incorrectly. Basically i need to read a from a file and store it into an ar...
May 23, 2016 at 6:00am
[no replies]
can I convert a class to int in c++?
for example: class UserInt { ..... }; and is there a way to do this: UserInt ui = 5; int a = ui; ? thanks!
May 23, 2016 at 4:06am
[2 replies] Last: thanks a lot! (by sunsflower)
May 2016 Pages: 123456... 17
  Archived months: [apr2016] [jun2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.