General C++ Programming - October 2014 (Page 33)

Can anyone make sense of this?
 
I'm taking C++ in college and my professor is foreign and can not speak English very well. He wrote all of this on the board for us to do but I'm really not sur...
[4 replies] Last: For -c =0; -n = 0; while (cin>>n) { tot += n; n++; } the professor... (by Duthomhas)
by oseri
Using pow(x,y) as a loop condition
 
I've written a bit of code : #include <iostream> #include <cmath> #include <cstdio> int main() { for(int i=1; i<=1000; i++) for(int j=i+1;...
[4 replies] Last: Yeah, the problem with that code is that the meaning of pow(i,2) dep... (by helios)
Help with calculation with inflation code
 
#include <iostream> #include <iomanip> #include <string> #include <cmath> using namespace std; void getInput(double& currPrice, double& oneYearPrice...
[no replies]
I need help Please
 
Hi everybody, I have just started learning c++ and in this specific post I am trying to figure out encryption function. Here is my code: // I need to define ...
[3 replies] Last: Do you know ? this is almost like rot13 encryption, google it to see ... (by closed account 28poGNh0)
by Mike92
Sad Face
 
Hi I am required to print a sad face using cout and I have no idea how to do so please help me
[12 replies] Last: Dont worry @cnoeval ,he will be soon ,I have couple ideas : break his... (by closed account 28poGNh0)
by Won
Convert big numbers to other base 64
 
Hi everybody! I'm working on a program and I need to convert big numbers to radix 64. I would like to shorter them whit conversion that's why I choosed bas...
[12 replies] Last: Thank you very much! :) (by Won)
need help in text length
 
im new to c++ ,so my question is how do i change a length of a text. for example hi my name is blah blah blah. nice to meet you. (n i want every lines to ha...
[3 replies] Last: just a random question (by jinjack33)
codeblocks horizontal scroll bar in console
 
Hello. I want to show my output in one line. But my output breaks to next line even before endl is encountered. how can I fix this problem ? codeblocks horizo...
[3 replies] Last: Fiddle with terminal settings. There should be something to either all... (by MiiNiPaa)
by Seag
Doubly-Linked List and Referencing Errors
 
Hello, Full disclosure, this is an assignment. I just need help figuring out how to fix my errors. And I apologize for the relatively messy code and badly-na...
[3 replies] Last: .. are you saying that I should not use forward declarations? Yes. ... (by kbw)
(.text+0x12c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `norm1(double*, int)' - ERROR
 
For some reason I keep getting this error, I have double checked my code and cannot find any errors myself, help would be greatly appreciated. MAIN.cpp #i...
[1 reply] : for ( int i = 0; i < size; i++){ (by closed account 48T7M4Gy)
by jodytj
C++ Classes Help!
 
/*Need Help with C++ classes. The suggestions from my instructor are: Here are some comments: 1. All programs for this course that use a class should be ...
[2 replies] Last: Ok. That's a lot of code. You're going to have to be a bit more specif... (by Zhuge)
Setprecision <iomanip> help!
 
This is my program: /*The East Coast sales division of a company generates 58 percent of total sales. Based on that percentage, write a program that will ...
[2 replies] Last: /*The East Coast sales division of a company generates 58 percent of ... (by jasonwynn10)
Can't be able to use "graphics.h" in Code Block ?
 
I'm trying to use "graphics.h" just for learning purpose. I'm trying to draw a line but "Code Block 13.12" gives this error "drawing operation was attempted ...
[10 replies] Last: Ah, I missed that in your first post. :-/ Well, glad to have helped. ... (by Duthomhas)
Please help me.I'm new to C++ ! I stuck on this one!
 
Write a payroll program that prompts for the number of hours an employee worked, as well as the employee’s pay rate. If the employee worked for 40 hours or le...
[3 replies] Last: Surely you don't expect somebody to write this whole program for you. ... (by AceK)
by AceK
How do I convert an 'unsigned char' to 'string'
 
Hi there, how do I convert a variable of type unsigned char to string. thanks
[9 replies] Last: No http://coliru.stacked-crooked.com/a/d7110802ea76a24f (by MiiNiPaa)
C++ parameter constructor - polymorphism
 
Dear All, I honestly don't understand why C++ Does not recognise my parameter construction. It says there is an error in the object "rec" or "tri". When you ...
[3 replies] Last: Sadly all our telepath's are currently on vacation and we are not able... (by MiiNiPaa)
I am having a little trouble with this coding.
 
" Write a program that reads into a string object a name with three blanks between the first and last names. Then extract the first and last names and store the...
[2 replies] Last: Thank you so much poteto :) for your time to help me out (by thiendo)
Help with 'Pow; was not declared
 
Hi, I have a problem with the power .. it says it's not declared in this scope! #include <iostream> // Access cout #include <cmath> // Access power function...
[4 replies] Last: thank you!! (by JojoCx3)
Help
 
In this assignment, you are going to write a program that keeps track of the social security numbers (SSN) of customers of a bank. Please notice that we are g...
[16 replies] Last: Thanks Esslercuffi, I got it to run perfectly. Thanks again. (by OPzCatchMee9)
Template usage
 
I'm starting to use templates and i have written a general class that uses templates. Now i want to use a function that prints data from the class: template <...
[2 replies] Last: I use the newest version of g++. It says: no matching function for ca... (by AbsBeginner)
October 2014 Pages: 1... 3132333435... 38
  Archived months: [sep2014] [nov2014]

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