General C++ Programming - September 2015 (Page 6)

wont stop
 
how do i make this stop printing out the same thing? #include <iostream> #include <ctime> using namespace std; int main() { char answer; cout << ...
[3 replies] Last: Change your while loop: cin >> guess; while (guess != num) { cout << ... (by coder777)
parsing a line
 
hi I have this line in a file AxBrCrAx....... //like this I want to know how can I find out how many times A occured with x and also how man times r occur...
[5 replies] Last: done! :) (by csstudent123)
Error while running the code, please fix this issue, Thanks :)
 
A point on the two-dimensional plane can be represented by two numbers: an x coordinate and a y coordinate. For example, formula (4, 5) represents a point havin...
[3 replies] Last: Thanks a lot Kemort. your help is highly appreciated and now i learned... (by smackthat1)
Errors involving c style strings for a caesar cipher program
 
This is the code I have so far. #include <iostream> #include "proj1.h" #include <cstring> using namespace std; int main() { Decipher (cipher ,...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/174351/ (by closed account 48T7M4Gy)
?? loop, seperating parts, random numbers. lets play a game...
 
so i was given an assignment and i cant get it to function the correct way, it is due tomorrow night and I have been burning my wheels trying to get this things...
[1 reply] : Put in code blocks and use proper indentation please. (by closed account 48T7M4Gy)
by Dkob1
Function prototype? & Global constant
 
What is permissible to leave out when coding a function prototype, as opposed to a function header? Is a global constant created at compile time?
[3 replies] Last: Ok, sorry I just need faster replies so I did that. That's OK. Nex... (by closed account 48T7M4Gy)
by Ozzy69
Help me with a string
 
Hi, i want appear in monitor this mensseger pmttbench_n=20\n=2\m=2\20_02_02_02_001.dat, but happen an error in char \: Look my code n' image: https://uploadd...
[1 reply] : You need to use double back-slashes (\\). #include <iostream> #inclu... (by closed account E0p9LyTq)
Pointer function and non-pointer function
 
Given a print function: void print(int i) { cout << i << endl; } Why are we allowed to do this in the main function: void (*bar)(int); bar =...
[3 replies] Last: It means that unlike other things (such as integers, strings, etc) fun... (by LB)
by Xuki
Graphics Programming in C++
 
Hi Just need some help with references I need tutorials ( written not video) on turbo c 3.0 graphics programming actually all kinds of examples will do I am ...
[8 replies] Last: Nothing much closing this stupid thread sorry for wasting all of your ... (by Xuki)
Nested lists of classes
 
How can I create a nested list of different classes? For example, I have a Figure list, declared like this: list<Figure> ls1; And I need to create ...
[1 reply] : #include <iostream> #include <list> struct vertex { /* ... */ }; str... (by JLBorges)
Temperature Converter
 
Write a temperature converter that works in the following way: 1. Ask the user to enter a number (of degrees) 2. Ask the user to enter the units of that num...
[1 reply] : http://www.cplusplus.com/forum/beginner/174349/ Don't create multiple... (by Hippogriff)
I need some help with this Class program
 
I am new to C++, and can not get this Student Class program to display "Name for student1 is unassigned and ssn is 9999999999." and "Name for student2 is John D...
[7 replies] Last: what are you talking about ?? (by ncaver)
by Dkob1
Function definition (basic)
 
Write the definition for a function named times_ten. The function should have an integer parameter named rnum. When times_ten is called, it should display (an...
[1 reply] : Yes. (by Hippogriff)
by ncaver
Programming Help !
 
Write your question here. Write an interactive C++ program that inputs a series of 12 temperatures from the user. It should write out on file "tempdata.dat" ea...
[3 replies] Last: nope! (by ncaver)
by Ozzy69
How manipulate a string?
 
Hi, i'm difficults for manipulate a string! I want that stay so: sexozin_001 sexozin_002 sexozin_003 sexozin_004 sexozin_005 .... sexozin_031 My cod...
[3 replies] Last: to_string is C++11 but you can look up other functions if you are st... (by Hippogriff)
Create a multiplication table program
 
Create a program that makes a multiplication table. Ask the user how many numbers should be in the table. Requirements Store all of the data in a 2-dimensio...
[1 reply] : Try to write the code yourself. When you get stuck for 30 minutes, pos... (by dhayden)
Memory allocation (deletion)
 
So I am trying to figure out how I should properly delete a matrix. I believe the code I have correctly allocates memory and sets it up correctly if I type some...
[5 replies] Last: 'array' is not a class. I guess what I'm also trying to say is that ... (by helios)
by nad27
Cartesian product
 
Find the cartesian product of n sets input by the user in c++
[1 reply] : That's a good question. Until now I didn't know they were lost. (by closed account 48T7M4Gy)
data abstraction
 
here is my code #include <iostream> #include <string> #include <vector> using namespace std; string type; //declare string variable to hold string type ...
[3 replies] Last: I said warnings, no errors. This is the important one foo.cpp: In func... (by ne555)
How to find first day of a month using C++
 
Suppose that the first day of a month is a Saturday. Write a program that gets the number (Day date) of the day in that month and prints out what day of the wee...
[9 replies] Last: #include <iostream> #include <string> int main() { std:: string day... (by closed account 48T7M4Gy)
September 2015 Pages: 1... 45678... 21
  Archived months: [aug2015] [oct2015]

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