General C++ Programming - March 2016 (Page 17)

When I compile my letters don't match up how can I get them to match
 
#include <iostream> #include <cstdlib> #include <cmath> #include "headers.h" using namespace std; void greet() { cout<<"Welcome to cletus's Bad ...
[1 reply] : First, unformatted code is tedious to read. Please add the code tags. ... (by keskiverto)
by xismn
WaveOut API - WOM_DONE message not being sent?
 
Hi there - not sure if this belongs in the Windows Programming board... I have an old project which uses the WaveOut API to stream PCM audio using a double-buf...
[1 reply] : Ok, You are correct--this belongs in the Windows forum. Please re-post... (by theturk1234)
round() function with Visual Studio 2015
 
Hi, I just upgrated from Visual Studio 2010 to 2015 version. When I compile my code (the one that works absolutely fine with 2010 version) I got an error eve...
[2 replies] Last: #include <cmath> ? std::round() ? http://en.cppreference.com/w/cpp... (by JLBorges)
How exactly can I make a program which will display the digits of a number?
 
The number can be literally any number, lets say it is 1425. The program needs to print out: "1 4 2 5" Is this possible with a while loop?
[1 reply] : #include <iostream> #include <sstream> int main() { int someNumber... (by Moschops)
Issue with with structures and sorting
 
I am trying to multiply members of a structure in my selection sort. For some reason when I do that the program is outputting incorrectly. The problem is com...
[3 replies] Last: Can you post the file sales.txt. I guess the problem is more in loadin... (by Thomas1965)
Bubble sort program
 
I have installed visual studio 2015 and running below bubble sort program in C++. #include<iostream> //declaring header file #include <conio.h> //declarin...
[1 reply] : http://stackoverflow.com/questions/15937707/error-message-cannot-find-... (by ne555)
by Bopaki
My main program does see the header files
 
When I have a header file and an implementation file, if I write the main() function and I write the #include <header file.h> and #include <implementation file....
[9 replies] Last: I have resolved my problem . Thank you all....... (by Bopaki)
C++ Problem Help
 
(1st question: How will i make a function that generates the seat number for the students?) (2nd question: How will i generate a code that does this "Students w...
[1 reply] : This is not a homework site. http://www.cplusplus.com/forum/beginner/1... (by Thomas1965)
LPCWSTR Issue!
 
LPCWSTR How can i initialize this string API ?
[3 replies] Last: LPCWSTR str= L"Some Text"; http://www.codeproject.com/Articles/2995/T... (by Thomas1965)
HACKING
 
//DFSDFJK //DFSDFJK //DFSDFJK //DFSDFJK //DFSDFJK //DFSDFJK ...
[1 reply] : You haven't asked a question, just posted a to of code without formatt... (by kbw)
copy Vector to array
 
I need help finding what's wrong with this code(the function part). I understand the concept of copying the vector elements to an array but there an error on my...
[6 replies] Last: Thank you JLBorges I was able to figure it out, I was being careless o... (by pandalot)
by xismn
Expected constant expression
 
Hi there, const-correctness and static member variables are domains of the language I haven't entirely grasped. I'm working on a larger project, but the follow...
[10 replies] Last: Thanks to everyone for their input! Ultimately, I was able to resolve ... (by xismn)
A little push with C++ assignment
 
Hello, I have a program I need to solve, and i can't seem to figure out how to code it. the question is as follows: Design a Meal class with two fields, one...
[2 replies] Last: Looks like that was what i was doing wrong with the operator function,... (by JacobMakeup)
Counting Repeating Words
 
Hello, My instructor is asking us to write a program that counts the number of repeating words in a string. The string must be user input, and the algorithm ...
[1 reply] : I will assume that "words" is taken as the English (or <insert human l... (by Duthomhas)
by Ferris
Converting Rectangular to Polar Coordinates (1,2)
 
1) Write a method that takes as input parameters a pair of Cartesian coordinates and which sets as output parameters a pair of polar coordinates corresponding t...
[20 replies] Last: I think you're right, you don't need showPolarCoord(), at least not in... (by Chervil)
mail.dat code problem
 
I have no clue what is wrong with this code. The only output I get is the last email address from mail.dat, this is due tomorrow please help. mail.dat = F...
[2 replies] Last: It worked great! Thank you so much for your help! (by stormy6161)
c++ append
 
Trying to get this function to work. It's supposed to append list2 to list1 and then removes all the nodes of list2. void intSLList:: append( ints...
[5 replies] Last: I need to append list 2 to list 1 and then empty out list 2. That s... (by dhayden)
Need to fill in a hollow shape.
 
this is a diamond generator it generates diamonds that are hollow. But if someone knows how to make them full diamonds i would really appreciate it. #include...
[6 replies] Last: I like way you run from -rows to rows. This is a common problem and i... (by dhayden)
by NBL
Streams and files
 
I'm having a problem understanding what this problem wants me to do and what encrypt and decrypt are? Can anyone help please! 1. A function char EncChar (cha...
[1 reply] : Double posting won't help you. http://www.cplusplus.com/forum/beginner... (by Thomas1965)
Store names in String Array.
 
I have the coding below for an array for characters, but I'm having trouble figuring out how to alter it into a String Array for storing names. Also, it needs a...
[2 replies] Last: Yes it is a homework assignment, I asked my professor for help but he ... (by brownn gal1)
March 2016 Pages: 1... 1516171819... 23
  Archived months: [feb2016] [apr2016]

This is an archived page. To post a new message, go to the current page.