Beginners - October 2013 (Page 48)

by Ratham
istringstream problem?
 
Write your question here. // This is my code in main: string word, processed_word, scrambled_word; string first_letter, last_letter, final_word; s...
[4 replies] Last: I tried cire's solution using my file name and it's still not printing... (by Ratham)
by tce19
Computing the sine of angle using the built in trigonometric function and The Taylor series approximation
 
The assignment is about computing the sine of the angle using the built in trigonometric function and computing the sine using the Taylor series approximation. ...
[2 replies] Last: thank you for you help (by tce19)
Basic Number Theory Test
 
Hello. I am trying to write a program for class where the user inputs two numbers (non-negative) and determines whether their product is within 2 of a multiple ...
[1 reply] : What do you mean by "within 2 of a multiple of ten"? As in, if   ... (by Duthomhas)
Lost in functions
 
Working on another programming assignment and cannot seem to find a foothold how to write a single function that calculates cost of 4 different items. I think t...
[6 replies] Last: Thank you for all the help! I have a much better understanding of the ... (by allendks45)
Beginner problems, fstream related. Class assignment due this week
 
Hello there, first time poster. Currently I'm in a basic intro to programming class, and I'm quickly getting lost. I can google my way through most programming ...
[no replies]
I am new at this, in need of assistance.
 
So, i'm kind of lost here. This program is supposed to take 2 different timestamps, find out which one is the latest, and find ot the difference between them, t...
[1 reply] : Don't think you need line 64. I'm not familuar with timestamp t1 { 2... (by SamuelAdams)
Fibonacci Numbers? Help on while loop
 
Having trouble with the while loop in this code. I'm trying to get the 9th term of the Fibonacci numbers. For instance if I input 1 for number1 and number2, the...
[2 replies] Last: I understand what your saying :) I have changed my code a little; howe... (by fahmankhan75)
using arrays and pointers to find smallest and largest
 
Ok so i am new to c++, Please help with the following code. OK SO THIS ARE THE INSTRUCTIONS I NEED TO FOLLOW FOR A SPECIFIC PART OF THE PROGRAM WHICH IS TO F...
[no replies]
scanf in c++
 
How to use scanf in c++ ? which header file i need to include when i am including conio.h it says no such file or directory! i am using ide codeblocks latest v...
[5 replies] Last: A common fallacy. Particularly in modern compilers. (by Duthomhas)
I am brand new... hello world
 
Hello everyone, I am brand new in the world of programming and I am currently trying to do the "hello world"/ "Game Over" project. I'm sure it is hilarious that...
[9 replies] Last: ok this is the only one that has worked for me.... //C hello world... (by SamuelH)
Random character generator not working
 
Ok, so my random character generator is not working properly. The letter is initialized at the start and they are liked that by default. I've also used the sra...
[13 replies] Last: You need to remember, among other things, that valid array indices are... (by cire)
Square roots with arrays
 
I am supposed to compute the quantity for an array of values. I'm having trouble writing the correct code to do so. I have some code written, but the output val...
[11 replies] Last: That got it fixed. Thanks a lot guys. My instructor throws all of this... (by Cryptik)
Program to Approximate Pi
 
I need help with my program that approximates pi. You are supposed to be able to enter n, or how many numbers are used in the series expansion to calculate pi....
[5 replies] Last: @abhishekm71 Thanks, I'll look at the thread @keskiverto What are you... (by CreditClown)
need advice on how to display graphics
 
I am a beginner that has been attracted to 3D computer graphics after reading YouTube lectures on computer graphics 1. I have learned matrices to Scale, ...
[1 reply] : Once again I must recommend the arc-synthesis tutorial. http://www.ar... (by Disch)
by tang
Which wrong?when i key-in 2/29/2000 display two 1-valid 2nd-invalid somealso display 1-valid 2nd-invalid
 
#include <iostream> #include <iomanip> using namespace std; int main() { int month, day, year; cout << "Month (January to Dec...
[2 replies] Last: @whitenite thx (by tang)
by tatai
How to run windows program in LINUX?
 
I have a C++ project compiled in windows? How can I run it in LINUX?
[5 replies] Last: @keskiverto: Debian based distros are more popular, and step 3 and 4 a... (by vasilenko93)
EOF SECOND LOOP??? Incorrect output?
 
I made an input and an output file. Don't know what part of the code i'm doing wrong. but this is what I end up with on my output file with the wrong alphabet g...
[3 replies] Last: Not sure what you are asking. The grades seem to agree with the tests... (by vin)
herez some errors please help me in removing these errors...
 
#include <iostream> #include <conio.h> using namespace std; class Date { private: int Day,month,year; public: void display(); void setDay(); ...
[2 replies] Last: what kind of errors do you get? Wait: int Date::year() {return year;}... (by coder777)
Please Help me with min/max values Arrays!
 
I have struggled with finding the highest value and lowest value in the array. Here is the code. // This program will read in a group of test scores( positi...
[4 replies] Last: @learningeveryday When you'll consider all is OK with this thre... (by condor)
text-editor
 
i am making simple text editor having some problem with this these are the works i have to do 1-typing(without using cout) 2-complete keyboard control i-e curs...
[no replies]
October 2013 Pages: 1... 4647484950... 86
  Archived months: [sep2013] [nov2013]

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