Beginners - September 2012 (Page 16)

Pointer to an array of pointers to functions
 
Hello there. I just start with the code of the problem I hinted in the title: #include <iostream> using namespace std; void my_int_func_a(int x) { cout...
[2 replies] Last: Wooops.... Thanks, now it seems so obvious. (by byte a bit)
How to use If Else
 
double EPS; double EY; //if stament to make sure users enters all necessary variables if ((this->tbProfit->Text == String::Empty ...
[no replies]
Calculator
 
I am getting the following error: 1>Calculator.obj : error LNK2019: unresolved external symbol "void __cdecl divideFractions(int,int,int,int,int &,int &)" (...
[2 replies] Last: Hey Pal, you didn't give definition of your function divideFractions()... (by HiteshVaghani1)
Recursive binary search using Array. HELP?!
 
OK so I'm trying to write a program that performs recursive binary search. this program suppose to ask the user to enter a number to look for, it will then call...
[3 replies] Last: That's the same one I'm using. Try copying the code you posted here in... (by TheJJJunk)
prime number function
 
So I need to write a code that prints "true" if a number is prime and "false" if it isn't .. this is the code I have so far 1 #include<iostream> 2 usin...
[6 replies] Last: i starts at 2. The while loop is initially true, since i < number. ... (by TheJJJunk)
Reading into an array from datafile.
 
I have a datafile that looks like this: NOT 11010011 ADD 00001101 00110011 ADD 11111111 00000001 OR 10011001 11100101 AND ...
[1 reply] : Use getline() to capture the whole line and then parse it with stri... (by soranz)
Question re: Pointers (I think)
 
This relates to an assignment, but I am not looking for answers (read the FAQ on that!) I have written a program to multiply matrices, however, now that I re...
[2 replies] Last: I cannot grasp these pointers Check out http://www.cdecl.org/ I... (by TheJJJunk)
time
 
Here's the problem I need help on. Write a program that asks the user to enter a number of seconds. There are 60 seconds in a minute. If the number of sec...
[4 replies] Last: //as long as there are more than 60 seconds while (seconds > 60) { ... (by TheJJJunk)
ignoring a piece of code based on specific input?
 
Hopefully I can explain this well. For the scenario, this program calculates the cost of copies based on a number of pages * $0.08(the cost of a copy), multi...
[4 replies] Last: else if (numberPages > 1) { cout << "Do you wish to staple each ... (by TheJJJunk)
Input .txt matrix into 2d array without asking for rows and columns
 
Hey guys, I've run into a problem where I need to input a matrix into a 2d array from a text file without asking for the rows and columns. when opening the ...
[4 replies] Last: I'm not sure about Java but you are correct that stringstream is proba... (by soranz)
C++ function with two parametre
 
Hello cPlusPlus' I'm having trouble to make a program that can do the following: In short - a function with 2 parameters. 1 Int, 1 Char. If the user en...
[2 replies] Last: Try putting a and b into show_func as parameters and change the ... (by TheJJJunk)
Get just one output out of this
 
I just want one random number not two for this: srand(time(0)); for (int i=0; i<=1; i++) { r = rand() % 2; cout << r << endl; } It...
[3 replies] Last: Take out the for loop. srand(time(0)); int r = rand() % 2; cout <... (by TheJJJunk)
sparse matrix using linked list C++
 
I'm coding the program that using linked list to store a sparse matrix. First I create a class "Node" contains the index of entry, value of entry and two pointe...
[no replies]
by Yamraj
Numbers to Words Program. Beginner.
 
Hi guys, I posted this same problem in the General C++ Forum, but I thought it should be in the beginner's forum because this is one of my first c++ assignments...
[2 replies] Last: becuase modulo takes the remainder so dividing by 1000 will go into it... (by Aramil of Elixia)
somethings wrong
 
#include <iostream> using namespace std; int main () { double total_points=0, average; double grade; int i=1; while (i<5) { cout<<"Please enter...
[8 replies] Last: thanks man i appreciate it. (by KoronaKyle)
by Sylex
Enter one variable, then the program skips to end
 
Hey all. I'm helping a friend with his code, and everything compiles fine, but when I try to run it, it only lets me enter the first input, and then it skips to...
[10 replies] Last: woooo! victory! thanks a lot to all of you. it's working swimmingly no... (by Sylex)
While statements
 
This is my program.... Can someone please help me? This is so confusing for me and nothing makes any sense. When I excute the program, it will ask for the 2 nam...
[4 replies] Last: so should i set it equal to = 0 so it changes? How can I correct your... (by dragonfly22)
Integers of Unlimited Size?
 
Hello, Fredbill30 here! I was just wondering if it is possible to make Integers of unlimited size in C/C++. That's all, bye.
[6 replies] Last: @Need4Sleep limits do not represent infinity at a given point. (by naraku9333)
Problem
 
thnx
[7 replies] Last: . (by beginner1432)
Please help!!!!! Simple for loop
 
Hello forum, I would first to say I appreciate any help, yes this is HW but I am not asking for it to be done for me, I'm a rookie and hit a snag. So I wa...
[7 replies] Last: I'm really glad you worked through it and got it working properly. It... (by Chervil)
September 2012 Pages: 1... 1415161718... 62
  Archived months: [aug2012] [oct2012]

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