General C++ Programming - October 2014 (Page 9)

Programming C++ on MAC OS
 
Hello! I started programming c++ on macbook pro and now i am searching for appropriate text editor. Now I am using xCode,which is a nice program,but i wan...
[7 replies] Last: Yes . Eclipse is better than XCode (for C++ , java and ... programmers... (by mrdp)
by hope22
hi..help me finish this one please
 
#include <iostream> #include <cmath> using namespace std; #include <cstdlib> #include <ctime> using namespace std; int rial() { int rial; unsigned see...
[4 replies] Last: and the way you are calculating your coins is wrong ,,, you need to ch... (by deepestblue)
there is was a question that i answered before and now it`s done by recursive for who needs:)
 
2. Write a recursive function GCD that returns the greatest common divisor of two integers. Where GCD is the largest integer that evenly divides each of the n...
[no replies]
Reading in TEXT files
 
Ok guys, so I have this program. Menu driven, input a traffic ticket with 8 variables is step 1. Step 2 is to be able to search by ticket number then print the...
[no replies]
by Droid
while loop
 
//Print every odd number descending from 39 int y = 0; while(y <= 39){ cout << y; y = (y - 2);// Take two from y after every loop...
[1 reply] : You're initializing y to 0, but it looks like you want to initialize t... (by wildblue)
Problem with program "Stopped working" [Beginner]
 
Hello, so I was trying to make a c++ console game "Gallows" for school, and I've noticed, that my program (Its not the full game, its only beginning, but I can'...
[7 replies] Last: @MiiNiPaa Thank you very much! My code now runs perfectly. Here is the... (by Justas Sam)
array,c++
 
#include <iostream> using namespace std; int main() { int a ; int m; cout<<"enter the value of array"; for(int i=0;i<2;i++) { f...
[3 replies] Last: You cannot assign it for same reason that you cannot do following: dou... (by MiiNiPaa)
vector push_back class
 
how bad/good is this code? I mean, how do you push back class to a vector in other way? is this somehow bad or not at all? class cls { public: int a...
[5 replies] Last: well obviously, as constructor is called whenever the class is created... (by mekkatorqu)
Undefined Reference Problem
 
Hi all, this is a really wierd problem as I have not come across it before. Some info before I start: IDE: CodeBlocks 13.12 OS: Windows 7 Language: plain ...
[5 replies] Last: > I thought that if you declare a function in the .h file, but not pro... (by ne555)
Leap Year determination while loop problem
 
For an assignment in my C++ class, I need to create a program which will determine if a year entered is a leap year using the while lop to input multiple years ...
[3 replies] Last: One more thing: You should add break command after each statement, b... (by Justas Sam)
I need help adding arrays/strings together
 
You will have two file streams: an input file stream for the file to be normalized and an output file stream that contains the normalized file. You should issue...
[8 replies] Last: #include <iostream> #include <fstream> #include <string> using namesp... (by JLBorges)
by mki
Eclipse cdt binary not found
 
I've installed eclipse cdt for my c++ IDE, GNU G++ for compiler, and GNU toolbox in my linux computer. When i run the program in the eclipse it showed the messa...
[no replies]
Help
 
#include <iostream>//this will include the "std::cout" stream for output to console. #include <cmath> #include <iomanip> using namespace std; //this will all...
[1 reply] : Hi, Welcome to cplusplus :+) First up please always use code tags - ... (by TheIdeasMan)
writing a program that computes the factorial of a number and displays it.
 
I'm new to c++ and want to write a program that computes the factorial of a number and displays it. A factorial of a number (written N!) is defined as N * (N-1...
[13 replies] Last: hahaha. LOL .. Use google my friend. There are already a lot of factor... (by jemeripol)
Help with computeGPA function
 
We are currently working on step wise refinement in class. I created my psuedo code in the function computeGPA in gpa.cpp, but I am having trouble coding it. An...
[6 replies] Last: Thanks for all your help bro. It was much appreciated! (by YumBerrys)
I'm having trouble with this, the question is listed in the code please somebody
 
#include <iostream> //ask the user for a set of data, product price & amount. calculate the total cost of the product. //cotinue to ask the user for diff...
[6 replies] Last: Thank you so much @JLBorges You are a life saver (by RLara23)
Get Day from Week Program -- DIRE NEED
 
I need help with my program. My program is supposed to get ask the user a date (MM DD YYYY) and its supposed to tell them what day of the week that specific dat...
[2 replies] Last: Er, there's actually a pretty simple formula to get the day of the wee... (by Duthomhas)
value returning function
 
so I have miscellaneous functions being called in "main". The last function is suppose to return a value of "sum" but displays nothing. The function is working ...
[2 replies] Last: Hi you have called the function but haven't assigned or std::cout th... (by TheIdeasMan)
Full string not appearing
 
I've a problem here that I can't find a solution for. #include "stdafx.h" #include <iostream> #include <fstream> #include <conio.h> ...
[1 reply] : The difference between fields is a HT character. The name field contai... (by Duthomhas)
by auba
Assigning string tokens to an array
 
Good day, I need to dynamically build a control file for a SQL loader but when tokenizing line values read from a file i am unable to work/assign the last va...
[5 replies] Last: Almost. So your input file is just a single record , containing the v... (by Duthomhas)
October 2014 Pages: 1... 7891011... 38
  Archived months: [sep2014] [nov2014]

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