Beginners - April 2012 (Page 57)

basic program help (structs, arrays, input/output)
 
http://faculty.cs.niu.edu/~byrnes/csci240/pgms/240pgm8.htm the link to the assignment ^^ My program1 seems to be working but I'm not sure why my my progr...
[1 reply] : I'm not sure how to print my code in the code-box type formatting I've... (by icecream9000)
by wtf
negative factorials
 
I was just reading that negative factorials are never defined, although they *can* be defined for all positive numbers based on the rationale that: for al...
[4 replies] Last: The gamma function IS defined for all real numbers except the negati... (by atropos)
Array update values correctly?
 
Hello, I had a quick question. When i'm updating values in an array is it possible to use a loop to add values? for instance, say at position 20 i want to add...
[1 reply] : No. Arrays always have fixed size so you can't add new elements. (by Peter87)
compiler error, no matching function, what is it telling me?
 
This is the error I get: bst.hpp:9: error: no matching function for call to âBST<int>::findStartingAtNode(const int&, BNode<int>* const&) constâ bst.hpp:14: ...
[1 reply] : I think that the problem is that you are trying to call a non-const m... (by vlad from moscow)
Float to Hex
 
Hello, I am trying to write a program that converts a floating point number into IEEE 32 and IEEE 64 bit hexadecimal representation. To do this, I can not use a...
[4 replies] Last: Well in that case, the code above at least gives you a unsigned int .... (by Stewbond)
by EeAA
build linked List
 
Hello Everyone! I need help to create a buildList function that will build a linked list by inserting one int at a time into the front of the linked list from ...
[no replies]
Passing Array to DLL Function
 
Ok i'm trying to pass an array to a function inside a DLL. the following is the C++ DLL Function double XPortBarArray(double inArray , int Size) { ...
[5 replies] Last: ok now im just confused <DLL CODE> #include <iostream> #include <st... (by madhatt30)
by Ch1156
return to line in code??
 
Is there a way to tell my code to return to a different part in the code?? like say i make a variable int x and my code gets done, can i make it return to that ...
[3 replies] Last: You should use a function for this. goto has it's uses but controlling... (by Computergeek01)
overloading an arithmetic operator
 
//I have written this program to calculate and display the ratio of two //different offices sales. But I'm getting two error messages I can't seem to //figure o...
[1 reply] : You made a typo inserting ';' after the parameter list in the defini... (by vlad from moscow)
by DreBoi
Please help me writ a code for this question
 
Airline travelers often want to know what time a flight will arrive at its destination in the local time of the destination. This can be calculated given the fo...
[4 replies] Last: make a first try, and we'll tell you how to resume and help you to the... (by TheDestroyer)
by eivets
Prime number help
 
I wrote this code for c++ on Dev C++ and it says my ??WHILE?? phrase is incorrect Please help. #include <iostream> #include <math.h> using namespace std; ...
[1 reply] : http://www.cplusplus.com/forum/beginner/65727/ (by Shinigami)
Prime function returns all values.
 
Ok here we are once again 30 minutes before class and my program is finally no longer getting any errors, but it's telling me that every value within the range ...
[13 replies] Last: create new topic for new question. And use source tags for code. (by Shinigami)
output problem
 
I am reading .txt files in a constructor: Library::Library(ifstream& inbookfile, ifstream& incardfile) { //temporary variables string title, author, ...
[15 replies] Last: for(int i = 1; i < numBooks; i++) { //reading Books ... (by JCaselles)
pthread app crashes
 
int main() { pthread_t makepi1,makepi2,makepi3,makepi4; pthread_create( &makepi1, NULL, pi, NULL); pthread_create( &makepi2, NULL, pi...
[1 reply] : You have several APIs that wrap around any complications with pthread,... (by closed account S6k9GNh0)
by DreBoi
Please help me write a code for this question
 
Service providers want to set up appointment schedules for each client for a given day within a bank, so customers mail in their requests with some details. Onl...
[4 replies] Last: Ok kool will post what I have later on (by DreBoi)
Checking Array entries
 
Hello, I am working on this problem with no luck. I have a list of data that has been put into an array like so a = 2 a = 3 a = 6 a = 8 a = 10 a ...
[4 replies] Last: Awesome thanks ! got it to work ... realized I had closed file input i... (by applecrisp)
Undefined reference to something that's appearently declared.
 
Hello, I'm getting a whole lot of compile errors: obj/Debug/LoadFromXml.o||In function `LoadPinballTable(b2World&)':| /home/werner/c++workspace/Pinball/Loa...
[5 replies] Last: Ever so often may want to "clean" your project. Maybe that'll help. -... (by Albatross)
How do you make a reset function? Tip Calculator example
 
//Tip Calculator #include <iostream> #include <math.h> using namespace std; float data ; //data = billtotal, 1 = %2tip, 2 = # of peeps float totalTip...
[5 replies] Last: Thanks for the help everyone. Alright, so now I am trying to make a f... (by hrstar24)
Using STL to count the number of occurence of english letter
 
Hi, The code is written to count the number of occurence of english letter from user's input. The problem I am having now is that when the input contain "ent...
[3 replies] Last: One more your variable istringstream iss; is empty. How many times sho... (by vlad from moscow)
Replacement words for class
 
I am working on a character header for my intro to game programming class, and I was wondering what is a good replacement for the word class since it is a key...
[4 replies] Last: "genus", perhaps? (by JLBorges)
April 2012 Pages: 1... 5556575859... 66
  Archived months: [mar2012] [may2012]

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