General C++ Programming - November 2015 (Page 23)

by Bry
Please Help: Switch Case
 
the output works correctly but every time it puts the name of the month theres a set of the same digits that follow it. How do I get it to just put the name of ...
[1 reply] : #include <iostream> #include <iomanip> #include <string> using names... (by closed account 48T7M4Gy)
what does a "e" follow with a float number mean?
 
float powLU = powf(LU, 1.0e6f); what the "e6f" does?
[2 replies] Last: See: http://en.cppreference.com/w/cpp/language/floating_literal (by JLBorges)
PLEASE HELP ARRAYS
 
Hi im having a hard time on where to go from here or if im already doing something wrong. I posted my prompt on the bottom. getGrades() Write a function t...
[1 reply] : Hope this is what you are looking for. #include <iostream> using nam... (by CoolGuy)
Compiling error. G++ cannot expand MACRO
 
Hello I'm getting the following compile error I'm not sure what is the cause. I'm using Ubuntu 12.04, GCC and G++ 4.8.1, Clang 3.3, with cmake version 3.3...
[2 replies] Last: Hi It had some functions not compatible specific to Windows but not im... (by vivienneanthony)
by Raj381
Deleting and redeclaring char
 
char data ;//Declared char delete data; char data ; error: conflicting declaration 'char data ' error: data has a previous declaration as 'char data '...
[4 replies] Last: thankyou, Actually I was trying to create an array as per requirement ... (by Raj381)
Need some urgent advice
 
If I were to say n to the second power, what would it be in C++? n^2? Wasn't sure if there was a special way of doing it or not. Thanks!!
[1 reply] : http://www.cplusplus.com/reference/cmath/pow/?kw=pow (by Yanson)
I need some advice!
 
I'm blanking on what count++ means/does. Any assistance would be greatly appreciated! Thank you!
[1 reply] : increments the variable by one (by ForTheReallys)
Palindrome program
 
What is messing with me is that when equal is set to false one it is not rest to true again. #include <iostream> #include <fstream> #include <string> #include...
[6 replies] Last: Alright thanks a lot man. (by Freshpots)
ROT 31 decoder
 
Hello I need a program to decode an ROT 31 string can anyone give me any suggestions?. I thank you in advance, I have tried for 2 weeks without any progress
[1 reply] : I thank you in advance, I have tried for 2 weeks without any progress... (by cire)
doubly linked list
 
hey guys so i seem to be having issue with my code, We need to make a doubly circularly linked list, but i cannot for the life of me seem to get my populate fun...
[2 replies] Last: Yes i have gotten to the point that i am having segmentation faults no... (by ike9229)
by ochoaj
Reading n characters at a time
 
So i have a file that has the following: ABCDE LMNOP and i want to read 3 characters at a time. So for example i want to output: ABC BCD CDE DEL ELM...
[1 reply] : After you go back in the stream check if the next thing in the stream ... (by ochoaj)
How can I add text to my bitmap file
 
With the code sample below, I have successfully created a .bmp file which when opened simply displays a grey square. Now I would like to add text to the bitmap ...
[1 reply] : If you want to draw into a bitmap you need a memory dc using CreateCom... (by coder777)
having trouble with exponents in equation for array
 
I am trying to recreate a table in c++ for homework and I am having trouble getting the equation to get the value to work. I get an error, and I am not sure if...
[3 replies] Last: Phew, after your guys help and even more research, i got everything to... (by A19S86R)
by xdhx
Need help with interest and principal formula
 
Hello everyone! This is my first forum post, and I am looking for help with finding principal, and interest on a loan. In addition I am suppose to have a third ...
[no replies]
Help with array of char pointers.
 
Hello fellow C++'ers! I have written this C code, which is sopposed to assign values to each element of the ** pointer: int main() { int arrsiz=4; ...
[3 replies] Last: You're welcome :) (by MikeyBoy)
Need Array Help
 
done
[5 replies] Last: Sh'yeah! Code tags are for, like, old square dudes! I'm a L337 hardc... (by MikeyBoy)
small question with class
 
javascript:tx('code') #include "stdafx.h" #include "iostream" using namespace std; class rectangleclass { int w,h; public: void setnum(int x, int y)...
[no replies]
Arrays in header
 
The following problem is a small part of my project. I have simplified the problem a lot. I have declared both the array size and the array globally. int N ...
[1 reply] : I have declared both the array size and the array globally. That's n... (by MikeyBoy)
by Winsu
I can't understand the wording (1,2)
 
This is the wording of a problem...I understand the target, what I have to do is count the possible ways to climb a ladder having the option of walking just one...
[26 replies] Last: I get what you mean ne555...It's working at 100% of performance... #... (by Winsu)
by Sh0es
Operator<< Compile Error
 
For the following piece of code: for (int i = 0; i < trn.getSize(); i++) cout << *(trn ) << endl; where operator << is defined as std::ostream...
[6 replies] Last: Yes, now that I think about it. All of these examples use the template... (by Sh0es)
November 2015 Pages: 1... 212223242526
  Archived months: [oct2015] [dec2015]

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