Beginners - October 2013 (Page 50)

while loop
 
Fellow! I'm stuck here. Currently, all this code right now doing is basically letter the user enter the damage and subtracting 5. Moreover, when it comes back t...
[2 replies] Last: Thank you bingo1 :) Makes more sense now :) (by fahmankhan75)
How to declare this without define
 
How to declare this without define #include <typeinfo> #include <iostream> #include <vector> using namespace std; #define isIntEx(X) ( isInt( type...
[5 replies] Last: I mention God Object before right ... There are some object that does... (by rmxhaha)
by devc1
fstream getline
 
I am having trouble reading from a file using fstream as taught by my professor. Reading from a txt of numbers I try to use: int x ; fstream f; f.open("d...
[5 replies] Last: Here's an example using getline with a delimiter input: 545 / 7 / 9... (by Chervil)
Unhandled exception with linked list, truly confused
 
this is the header file I am using and the function that is throwing errors, was providing by professor so it has to be right template<class ItemType> clas...
[1 reply] : Pease don't crosspost the same message to multiple forums. http://www... (by cire)
by amdv
Help please!
 
Hi everyone, first post here, you all seem really helpful. I'm trying to write a program that allows a user to enter between 1 and 10 values into a 10 elemen...
[3 replies] Last: hold on, bit more shuffling round, seems to be getting there all fixe... (by amdv)
by clodi
FSCANF quick question :)
 
Hi guys. Writing to a file I found this issue. I want to use fscanf and i go: string name = "Luca"; fscanf( pFile, "%s", name ); This does NOT w...
[14 replies] Last: Thanks a lot!! Don't worry!! I am doing great ( lol ) I'll send you m... (by clodi)
does this program contain class's
 
Alright I'm not quit sure what a class is but does the following programing contain any Menubuilder.cpp #ifndef _MenuBuiler_CPP_ #define _MenuBuilde...
[3 replies] Last: Alright now My main functions are not able to be defines I don't under... (by ProgramMaster)
exponential functions help.
 
ok so i'm trying to calculate the interest rate, and i keep getting an error when using pow. the error states: more than one instance of overloaded function ...
[3 replies] Last: Then maybe the conflict is coming from exponent ? If that's also a do... (by shacktar)
Simly c++ question
 
Hello everybody :) I have a really simply C++ question. I have a txt file which decribes geometric shapes name and the cordinates First number describes how m...
[4 replies] Last: No, coordinates will be neccesary in the future. (by deividas717)
help verifying code
 
Write a program that computes the value of the mathematical constant π, using the following series: 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + ...... The program sho...
[1 reply] : It looks good. You can try outputting the denominator's value within t... (by shacktar)
JUnk value
 
why does it show junk value for name. #include<iostream> #include<conio.h> using namespace std; struct part { char name ; int number; }; void...
[1 reply] : Because it's not null terminated. Fill name with zeroes before reading... (by shacktar)
many compiling issues with pi approximation
 
I have a program written where I can approximate pi with an n value entered.The outputs need to look like either: (not computable due to negative): This progra...
[no replies]
by ephekt
interval_since function
 
Hello everyone, I am having trouble getting this function to work properly. Can someone please point me in the right direction. I was given a class DigitalTim...
[8 replies] Last: You're welcome. It's just that in this case I do think the earlier ... (by Chervil)
by Tomhet
Realloc, malloc
 
Why there is memory leak when I use realloc, malloc alot and that sure those res going to be freed? I noticed it happens too with std::vector, deque etc contai...
[no replies]
pi amortization
 
I am needing to write a program that calculates the amortization of pi. The output must look like this: This program approximates pi using an n-term series ex...
[2 replies] Last: Thanks for the link. I think I opened about every one but that one hah... (by jsmi2016)
command line argumetns in codeblocks
 
we give command line arguments like ./a.out<input.txt how to do the same thing with codeblocks ? can anybody please explain this i am new to codeblocks! thank...
[no replies]
help fixing for loop factorial code
 
I'm supposed to write a program that uses one variable int n (which should be positive) and use a for or while loop to compute the following sum : 1^3 + ...
[5 replies] Last: Note: sum is an integer because you add only integers (integer powers ... (by condor)
by pc97
Help with assignment?!
 
Martha takes a jar of quarters to the casino with the intention of becoming rich. She plays three machines in turn. Unknown to her, the machines are entirely pr...
[no replies]
palindrome
 
Write your question here. I am working on palindrome. I am not exactly sure where I am making mistake. void palindrom() { int skip =0; char word ; ...
[no replies]
I am stuck please help
 
deleted
[5 replies] Last: i'm confused :) but nothing new there lol (by mutexe)
October 2013 Pages: 1... 4849505152... 86
  Archived months: [sep2013] [nov2013]

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