Beginners - October 2015 (Page 7)

by Jon15
Class and Getline problems (1,2)
 
Hellow, i am writing a program that will decode and encode messages. (A = 1, B = 2, space = 0, etc.) I am having trouble with my encode, specifically inputting...
Oct 28, 2015 at 11:14pm
[21 replies] Last: http://www.cplusplus.com/reference/cctype/isalpha/ (by closed account 48T7M4Gy)
Why dereferencing is not needed in this case?
 
Hello, I'm a little confused about this 2 constructs: To access the vector object, I have to dereference the pointer to get it. I understand this... ...
Oct 28, 2015 at 10:58pm
[no replies]
by forejs
ERROR Linker command failed to exit
 
You were absolutely right. I fixed the definition and now I have this up and running. The < code > formatting is awesome! Thanks. Any recommendations? #i...
Oct 28, 2015 at 10:22pm
[2 replies] Last: I ran it and it appears i have some design flaws... Here are the er... (by forejs)
Debugging code
 
Okay so I am given code which needs to be fixed. All logic and syntax error need to be fixed. I don't understand where there are logical errors. Can someone loo...
Oct 28, 2015 at 10:19pm
[no replies]
Finding Prime Fibonacci Numbers
 
My program is suppose to output the first 8 Prime Fibonacci numbers, My output is as follows: 1 1 2 5 13 89 233 1597 4181 28657 514229 1)Why am I gettin...
Oct 28, 2015 at 9:44pm
[1 reply] : i think because you check 1 first then you get "1" then you check two ... (by hohanyo)
dynamical array alocation and displaying it
 
Hello i have to do this: Write a function that takes 3 arguments, a length, width and height, dynamically allocates a 3-dimensional array with those values and...
Oct 28, 2015 at 9:32pm
[no replies]
Warning C4244 ??
 
Hello, I'm getting an error: warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data If I double click on this error...
Oct 28, 2015 at 8:12pm
[15 replies] Last: 😜 (by closed account 48T7M4Gy)
Help Function assignment
 
Hello all, I'm pretty new to programming and I'm not very good at it. But I have this assignment and I can't figure out whats wrong with my program. Here is the...
Oct 28, 2015 at 7:13pm
[8 replies] Last: How should I re-write my main function to get the calculations i need? (by Lamshark)
Float digitis
 
float is 7 digit. Isn't it? why out put print out 6 digit? #include <iostream> using namespace std; int main() { float a = 1.23456.7; cout ...
Oct 28, 2015 at 5:42pm
[1 reply] : You can set the output precision to show more or less digits: #inclu... (by closed account E0p9LyTq)
by ct180
Updating ctime
 
The following is what I have come up with regarding a small program that should show the current time as it updates every second. However, it is just showing st...
Oct 28, 2015 at 5:41pm
[2 replies] Last: I have to use ctime. Also, just realized l left some parts out of the ... (by ct180)
Help Please?
 
Write the following 3 functions. a) A function the prints three asterisks with three spaces in between each, starting in the first column: * * * Do not pri...
Oct 28, 2015 at 5:40pm
[13 replies] Last: Staying within the parameters of the assignment... #include <iostre... (by pearlyman)
Bool recursive function about palindrome|Homework
 
Hello I need some help here I don't have ideas to code a bool recursive function about palindrome. How to return the value in bool function instead of 1,0? Can...
Oct 28, 2015 at 4:49pm
[3 replies] Last: my program is a case sensitive (by sujitnag)
can you create a UI with C++?
 
Hidy ho all, my word its been some time since I was here last. I was curious about something. Can you use C++ to create a user interface, like you can in...
Oct 28, 2015 at 4:46pm
[6 replies] Last: [quote=MiiNiPaa]If you make past all layers of abstractions modern OS ... (by closed account E0p9LyTq)
C++: Writing backwards the content of a string, output is not the expected
 
I want to write a script that asks for the user to write a single word (stored as a string) and the output must be the same word written backwards, if the word ...
Oct 28, 2015 at 4:38pm
[8 replies] Last: [quote=juliotv]wow! Thanks a lot for showing me the different ways on ... (by closed account E0p9LyTq)
by dahin
Error expression must have integral or enum type
 
My following code gave error message like expression must have integral or enum type when I tried to add or subtract two floating point numbers. Error message ...
Oct 28, 2015 at 3:59pm
[2 replies] Last: Thank you. Now it works.. (by dahin)
unable to get required output
 
Hello! i've been working on a Contacts program, and i'm unable to get the desired output, can someone tell me what's wrong with my code? #include<iostrea...
Oct 28, 2015 at 1:20pm
[7 replies] Last: Hey thanks Ericool! I'll try it out... (by Shashank Setty)
Need Help!How to rewrite the Palindrome function recursively?
 
I don't have ideas to rewrite the Palindrome function recursively. Can you guys help me?or tell ideas how can i write. Thanks a lot. // Check if a positive i...
Oct 28, 2015 at 11:16am
[5 replies] Last: http://www.cplusplus.com/forum/beginner/177254/ (by closed account 48T7M4Gy)
by tnt980
Code Help
 
i need the code to have the user input a number and have it say an error if it is not positive. heres my code #include <iostream> #include <sstream...
Oct 28, 2015 at 10:32am
[8 replies] Last: @chicofeo ;) (by closed account 48T7M4Gy)
by sk9294
different output
 
why code 1 works fine whereas code 2 doesn't????????? code 1: #include<stdio.h> void main( ) { int a = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 6 } ...
Oct 28, 2015 at 8:06am
[9 replies] Last: #include<stdio.h> int main( ) // just change it to this { int a =... (by closed account 48T7M4Gy)
by ric717
Output Formatting
 
Hey everyone, I'm a newbie in C++ and I wanted to know how to format my output in such a way that it looks like this; Celsius Fahrenheit Celsius Fahrenh...
Oct 28, 2015 at 8:04am
[1 reply] : @ric717 - I know Celsius scale not Celcius - See this: http://ww... (by condor)
October 2015 Pages: 1... 56789... 57
  Archived months: [sep2015] [nov2015]

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