Beginners - October 2015 (Page 4)

by st4evr
Output Letter Square Using For Loop
 
Hello, Beginner C++ student here, first ever programming class. The code I put together shown below outputs a number square as shown in the screenshot in this ...
[5 replies] Last: Thank you very much kemort for the advise. That worked. Working code:... (by st4evr)
.txt files...how to read/open them?
 
I need to open these quiz questions from a .txt file. I created a file by Right click , New, .txt file, paste it, and how can I open this file on the co...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by closed account 48T7M4Gy)
by Whaves
Calendar
 
So I had this assignment due a few weeks ago and couldn't figure out how to get what the professor wanted. He wants a calendar to generate for the the given yea...
[11 replies] Last: @Whaves Like I show on line 96 start_day = Zeller_Congruence(x, 1, y... (by whitenite1)
Help w/ Friendship Algorithm please. (1,2,3,4)
 
Hi, so i'm supposed to write a program that determines the level of friendship with someone. Each question i ask is supposed to utilize a function which i have...
[68 replies] Last: Don't worry Phil, I went back and checked and re-answered everything a... (by closed account 48T7M4Gy)
Trying to make a quiz with switch
 
I was trying to make a quiz with a switch statement...but I realize that it's going to take a lot of work because you will have to paste the same questions over...
[2 replies] Last: Thank you!! :) (by ruroni24)
URGENT ARRAY HELP! REALLY NEED HELP TONIGHT!
 
Hi, can someone explain to me why I am not getting any output from my program?? #include <iostream> using namespace std; int main () { int arrayS...
[1 reply] : So which part of the following output isn't what you're getting? Have ... (by closed account 48T7M4Gy)
Help with array.
 
I'm trying to get the max,min,mean,std dev,variance of an array .. when I run the program it shows me no errors but my max, min etc are letters mixed with numbe...
[1 reply] : Use code tags <> please. Use the toolbox on the right. Your code runs... (by closed account 48T7M4Gy)
HELP!!! I HAVE NO IDEA WHAT IM DOING!
 
I have this question and I have no idea where to start off from. Can someone start me off and help me with this problem because I am completely lost. Quest...
[3 replies] Last: Do you know how to count backwards ? I can but in the absence of a ... (by closed account 48T7M4Gy)
Need help shifting array 2 spaces to the left.
 
My code lets a user input how big they want an array to be then it reverses it. My professor wants us to shift the element 2 spaces to the left. So if someone e...
[1 reply] : There're too many irrelative code. My idea to solve the problem is to ... (by liuyang)
What am I doing wrong?
 
This code works for some figures but not others. Like when i input "900" seconds, I get an error message that reads: "floating point exception (core dumped)" bu...
[3 replies] Last: Got it! I took it out:seconds = seconds % seconds; and now it works p... (by nuglyfe)
What's wrong with my code?
 
Hey guys, I'm trying to finish up a homework assignment and I can't figure out why it won't compile. #include <iostream> #include <cmath> using namespace ...
[8 replies] Last: Try this. Read it carefully and you will be able to see what the above... (by closed account 48T7M4Gy)
problems installing ubuntu
 
So i am trying to install ubuntu on an external hard drive. i have tried a couple of methods, i turned a USB into a boot device and tried to install from there....
[1 reply] : http://askubuntu.com/questions/446682/how-to-install-ubuntu-on-portabl... (by closed account 48T7M4Gy)
More effective file check, then rename code?
 
This code works relatively well for my purposes, however I had in mind some kind for loop that didn't have a limit. I've tried both 'for' and 'while' loops, how...
[10 replies] Last: I appreciate the reply, but I felt that having to install 'filesystem... (by cire)
Opening and Manipulating Other Programs
 
I know I can open other programs with something like #include <iostream> #include <windows.h> int main() { StartProgram("C:\\Program Files (x86)\Microsoft ...
[2 replies] Last: Thanks @Computergeek01 The API would be proprietary. I wanted to man... (by cpp300XPBoost)
Replace spaces with '*'
 
I read a line from a file as a string, and I want to replace the spaces with '*'. I'm doing this because I think the functions in the find family, string::find...
[10 replies] Last: Just thought I'd let everyone here know. I found the "error" last week... (by cpp300XPBoost)
easy way to find the smallest variable?
 
Hi all, I have a question regarding the simplest method to find the smallest variable given the variables: x, y, z. Assume that all three variables are positiv...
[3 replies] Last: Using a function will greatly simplify the logic required to solve thi... (by jlb)
Need help with a code problem
 
Im trying to get this code working in C++. I originally wrote it in Python as: folds = raw_input('Enter the number of folds of paper') paperThickness = 0.005; #...
[4 replies] Last: Thanks for the help! I figured out how to print to a specific decimal ... (by nuglyfe)
by Tores1
rounding decimal numbers
 
Hi forum i need help with rounding of numbers i have some array of numbers type float and i need fix it for example float f1=5.558; float f2=5.1; to ...
[3 replies] Last: You'll probably also want to use "fixed" and possibly "showpoint" ht... (by jlb)
pop bar chart help
 
Hi, new to the forum and programming, I've seen a few threads on this and I've taken tidbits here and there to get as far as I have.. but I'm still missing some...
[2 replies] Last: Also it appears that your file is probably not opening correctly, you ... (by jlb)
Question: Count how many times a loop is executed.
 
Hello everyone, I have a question regarding a "counter" inside a nested "for loop", and use this counter to count how many times the loop has been executed. Be...
[6 replies] Last: I see. I really need to get in the habit of initializing variables hah... (by NewProgramma)
October 2015 Pages: 123456... 57
  Archived months: [sep2015] [nov2015]

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