Beginners - February 2014 (Page 13)

Loops problems
 
Hey Guys.. Is there any problem which cann't be solved by using all the three loops at?? and any problem which can only be solved by For loop??
[1 reply] : Hi, A for loop is good when you have a known number of iterations. A... (by TheIdeasMan)
My Calender Program
 
Did I write a good code? #include <iostream> #include <string> using namespace std; int main() { int inc = { 0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5 }; ...
[5 replies] Last: @Agent Thanks for the explanation - you have described your algorithm... (by TheIdeasMan)
Writing to a program to a file
 
So my assignment is to write to a file prime numbers from 1 to 100. Here is my code, but i can't seem to get it to write to my specified file #include ...
[6 replies] Last: #include "stdafx.h" #include "conio.h" #include "iostream" #include ... (by ak16)
Extract Subscripts in Order
 
Okay so I am making a program that sorts an array of names through link lists and I need help, I need to sort this array by placing its subscript into the the l...
[no replies]
Need help with program.
 
I cant figure this out, it just keeps looping back after i give the answer to the first question. #include <iostream> #include <cctype> #include <stri...
[3 replies] Last: Wait wait wait i got it didn't see one of the things you told me to fi... (by derpmaster)
How to countstring input word by word at a time
 
I was given an exercise to write a program that read strings of input, after which the program display how many words it received, how many of the words receive...
[4 replies] Last: The words you need to read strings out are in which docuemnt format, i... (by EisenhowerPDF)
Need Help with C++ math
 
How can i put ^2 in a math problem? Please a way that is not pow because i have to get it into this problem: wtenginstalled=noeng*(105.8439+1.448059*engine/noe...
[no replies]
by stanz
please help me
 
what is ceil function? any example?
[1 reply] : http://www.cplusplus.com/reference/cmath/ceil/ (by Zhuge)
A Gauss-Jordan C++ Code
 
Hi there. This is a simple Gauss-Jordan Elimination matrix code. I just want to ask for comments with this code since I'm a beginner. Thank you. Any comment is ...
[no replies]
array subscript
 
Hello, I need to get an array's subscript depending on its value since I'm sorting it through a link list in logical form. Logical Form is what my professors ca...
[2 replies] Last: Thanks, I got it, I got a brain fart I simply used a for loop. Thanks.... (by jva2794)
modifying an array in main using another function
 
I need to pass 3 arrays to a function, set the 3rd equal to the 1st multiplied by the 2nd, and have the main function give the values of the 3rd array. I've bee...
[2 replies] Last: How would I go about calling calcVolts? And what should I have it retu... (by lizardqueen)
Program won't stop running
 
Ok, I just wrote this program for a class. It builds but the output is never produced. I need help figuring out why. #include <iostream> #include <cstdli...
[5 replies] Last: When `runs' become 1 you exit the loop. the next time, `runs' is still... (by ne555)
anyone good at Java?
 
I am writing a simple client server chat program. I need help writing my chatting() command. How do I use the streams? My code is below. /* * To c...
[3 replies] Last: I think my problem is in line 105 when I try to send the data. (by Gkneeus)
Game Board (overloarding)
 
I think this is overloading a function but it's the part that confuses me the most. I have a map that I want pieces to show up in and obviously needs to redr...
[5 replies] Last: At this time I'd seriously question if 2D arrays were the right way to... (by closed account N36fSL3A)
Visual Studio 2012: I opened one of my projects but the only file I see is fstream and the debugging button is greyed out
 
This is a big project with a 15+ files and it would be tedious to open them all manually and even if I did do that, I don't think I'd be able to run them becaus...
[2 replies] Last: I fixed it, I right clicked where it says midterm project (unavailable... (by theperson)
volume of a box code
 
I need a sample of a statement to find the volume of a box where V=abc. Would this work. Put the code you need help with here. int L,W,H,volume; L=10; W...
[1 reply] : Yes, it will work just fine... But, if you want the user to input size... (by Ailakith)
Just bought c++ primer 5th edition, what do you think about it?
 
Hey guys, As the title says I just bought c++ primer 5th edition of Amazon, it,s not here yet but is supposed to come on thursday, and I wanna know what yo...
[6 replies] Last: my favorite book is this one: http://www.amazon.com/Starting-Out-Early... (by heyyouyesyouiloveyou)
My code isn't looping. Trying to count to 1000.
 
I want my code to count from '5 - 1000' (count by 5) when the user inputs a '1'. The problem is, my for-loop isn't looping and only counts once (outputs 5) in...
[5 replies] Last: It worked thanks #include <cstdlib> #include <iostream> using names... (by OutCold)
Homework assignment 90% complete but stuck
 
The purpose of this project is to give you an opportunity to apply your knowledge of looping structures in C++. You must create a program that will display a ch...
[1 reply] : On each line there are two things: whitespace and asterisks. You do o... (by keskiverto)
extracting letters from strings in an array
 
Okay so I have a string array and I also have a character array, I want to sort my string array through a link list in logical form (alphabetical order) what I ...
[no replies]
February 2014 Pages: 1... 1112131415... 60
  Archived months: [jan2014] [mar2014]

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