- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
unemployed poor college student living off ramen. not really.
Re:
Hello to all programmers out there. Considering the growing request for practice problems by the beginners, we ( Me, Joey, Niek, Aaron..) have decided to start a sticky which will host some common practice problems which would help the beginners in understanding the programming concepts in a better way. (Did … |
|
Re:
I have an assignment to write a recursive function that takes one integer variable and output the integer in reverse order to the screen. I've tried converting it to a char array(c++ "string" class not allowed) but could not get a counter to work. I can reverse an int array … |
|
Re:
[B]All the flowers of tomorrow are in the seeds of today. :) [/B] |
|
|
Re:
I'll post the question below but I can't get the smallest and largest to print. I'm not even sure I have the math correct to calculate them because I can't get results to print. A local zoo wants to keep track of how many pounds of food each of its … |
Re:
hi guys am a total noob with C++ and im trying to write a program that will take a user inputted integer and displays its divisors and then tell the user whether it is a perfect number or not. So far I have [code=cplusplus] #include <iostream> using namespace std; int … |
|
Hey all, I use Windows XP and atm, I need to increase the memory allocated from default 64M(i think?) to 500M. So I'm in the directory where the jar file is (I'm using JFLAP if anybody is familiar with it, it's for statemachines/automata) and i type the following: java -Xmx500m … |
|
Re:
I have trouble with getting the correct number of characters displayed when returning this simple function. Does anyone see what I am doing wrong in the function (the cout function outputs -2 instead of 4 which is the lenght of "test")? Thanks: [code] #include <iostream> using namespace std; int mystrlen(char … |
|
Re:
Hey guys, I've got a beginner question about this for some reason the getline function will not work, does anyone know why? I can't seem to figure it out [code]int main () { string studentname; int test1, test2; cout << "Enter first test score"; cin >> test1; cout << "Enter … |
|
Re:
I am having a tough time grasping functions =/ the book we use is pretty much useless. My problems are 1) Knowing what to put into the function ( ) 2) How to validate it ( nothing in the book about it) Any help or ideas I will greatly love … |
|
Re:
I have 3 instructions- 1- Use rand() to generate a number less then 100 and greater than 1 2- Call the prime() function to test the result 3- Print out the result So far i have found how to get a prime number but don't know how to fill up … |
|
Re:
hi everyone, im having problems with my loop in my assignment im working on. im not tryin to get the code from you guys. but would like some pointers on what im doing wrong. im tryin to figure out why my "else" code wont work? i've tried to look for … |
|
Re:
im brushing over some of my notes for a midterm tommorow. questions i have when i was reading: what exactly does a parameter do? i know it passes a value to a function-but how is it always like that? or is it more complicated than that? is it kind of … |
|
Re:
Hey there, everyone. Here is the question I had to write code for: Include the following code: char test[15] = {‘T’, ‘h’, ‘i’,’s’, ‘_’, ’i’, ’s’, ‘_’, ’a’, ‘_’, ’t’, ’e’, ’s’, ’t’}; for (int row = 0; row < 15; row++) { cout << test[row]; } Add the code … |
|
Re:
If I have these function variables: int (*f)(int); int (*g)(int); int (*h)(char); why can I do the assingment f=g but if I do h=g the C compiler gives me warning while the C++ compiler gives me an error. Can any one please explain this to me. |
|
Sorry, I lied!!! I usually don't post in "hello i'm a noob at this site" but i just wanted to make a topic that (wrongfully) claimed that i'm not a geek. I'm from US. Btw, Freud is a fraud!! He has made a lot of interesting contribution to modern psychology … |
|
Re:
I am a beginner I spent many hours studying c++ books and online tutorials, I am sure I am competent enough to become a good programmer but I cant wrap my mind around how c++ (or any programming language for that matter) works. My question is, How do I understand … |
|
Re:
[url]http://www.mypce.com[/url] I bet someone out there tries to buy one of these :icon_cheesygrin: |
|
Re:
Well, I bumped into an interesting C++ problem last night while I was aimlessly surfing the Internet, and, of course, it caught my attention. It said something like this: "From a file it's read a text that contains a phrase, on a line. The program rearranges the letters in each … |
|
Re:
You are supplied with a group of implemented sorting algorithms (posted file sortTest.cpp). You may not change the prototypes or any of the provided code. You will add a main program to use the functions you are given. You will also add one additional function VerirySorted. This function will take … |
|
Re:
Hey, im trying to print what is stored in my 2d dynmic array from a file in my print function. However whenever i try to access information in the array, it crashes the program. maybe the array is not being passed back some how, im not sure, any information would … |
|
Re:
write a program which fills a 10 element array using a for loop with numbers 90,80,70 etc. write a function to return the maxi value of the numbers in the array. write a function to return the average value of the numbers in the array. |
|
Re:
What does == test when applied to arrays in C++? Does it test for type equivalence or equal memory locations? |
|
For some weird odd reason, sqrt(2/num) does not work. [ICODE] cout << " sqrt(2): " << sqrt(2) << endl; cout << " sqrt(num): " << sqrt(num) << endl; cout << " sqrt(2)/sqrt(num): " << sqrt(2)/sqrt(num) << endl; cout << " sqrt(2/num): " << sqrt(2/num) << endl;[/ICODE] results in [ICODE] sqrt(2): … |
|
Re:
[code] //***************************************************************************** // CPSC1620 - Fall 2008 // // // Date: // Purpose: Program to perform array operations using functions //***************************************************************************** #include <iostream> using namespace std; //Prototype int readSeq(int []); int main() { return 0; } //***************************************************************************** //Function: readSeq //Assumption: Reads a sequence of integers //Action: Stores the sequence in … |
|
Hi, I'm doing a very very simple coding, However the compiler apparently does not like my usage of cin and gives me an error: no match for 'operator<<' or 'operator>>' depending on cout or cin. I've used this many times before but never have encountered this problem trying to use … |