
please wait
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 ... |
Oct 30, 2015 at 5:06am
[5 replies] Last: Thank you very much kemort for the advise. That worked. Working code:... (by st4evr)
|
by ruroni24
.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... |
Oct 30, 2015 at 3:55am
[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... |
Oct 30, 2015 at 3:43am
[11 replies] Last: @Whaves Like I show on line 96 start_day = Zeller_Congruence(x, 1, y... (by whitenite1)
|
by Phil092
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... |
Oct 30, 2015 at 2:59am
[68 replies] Last: Don't worry Phil, I went back and checked and re-answered everything a... (by closed account 48T7M4Gy)
|
by ruroni24
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... |
Oct 30, 2015 at 2:28am
[2 replies] Last: Thank you!! :) (by ruroni24)
|
by alwash818
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... |
Oct 30, 2015 at 1:55am
[1 reply] : So which part of the following output isn't what you're getting? Have ... (by closed account 48T7M4Gy)
|
by sebasremar
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... |
Oct 30, 2015 at 1:51am
[1 reply] : Use code tags <> please. Use the toolbox on the right. Your code runs... (by closed account 48T7M4Gy)
|
by jeremyb2015
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... |
Oct 30, 2015 at 1:20am
[3 replies] Last: Do you know how to count backwards ? I can but in the absence of a ... (by closed account 48T7M4Gy)
|
by DARK BUGABOO
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... |
Oct 30, 2015 at 1:11am
[1 reply] : There're too many irrelative code. My idea to solve the problem is to ... (by liuyang)
|
by nuglyfe
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... |
Oct 30, 2015 at 1:02am
[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 ... |
Oct 30, 2015 at 12:56am
[8 replies] Last: Try this. Read it carefully and you will be able to see what the above... (by closed account 48T7M4Gy)
|
by me7alhead
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.... |
Oct 29, 2015 at 11:15pm
[1 reply] : http://askubuntu.com/questions/446682/how-to-install-ubuntu-on-portabl... (by closed account 48T7M4Gy)
|
by TheInsertion
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... |
Oct 29, 2015 at 10:10pm
[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 ... |
Oct 29, 2015 at 9:47pm
[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... |
Oct 29, 2015 at 9:41pm
[10 replies] Last: Just thought I'd let everyone here know. I found the "error" last week... (by cpp300XPBoost)
|
by NewProgramma
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... |
Oct 29, 2015 at 8:31pm
[3 replies] Last: Using a function will greatly simplify the logic required to solve thi... (by jlb)
|
by nuglyfe
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; #... |
Oct 29, 2015 at 8:20pm
[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 ... |
Oct 29, 2015 at 8:12pm
[3 replies] Last: You'll probably also want to use "fixed" and possibly "showpoint" ht... (by jlb)
|
by jframe1734
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... |
Oct 29, 2015 at 8:01pm
[2 replies] Last: Also it appears that your file is probably not opening correctly, you ... (by jlb)
|
by NewProgramma
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... |
Oct 29, 2015 at 7:42pm
[6 replies] Last: I see. I really need to get in the habit of initializing variables hah... (by NewProgramma)
|