GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Feb-2009, 08:54
SunYatSen SunYatSen is offline
New Member
 
Join Date: Feb 2009
Posts: 1
SunYatSen is an unknown quantity at this point
Arrow

Use a recursive function to extract all negative numbers


Hello there ,
I have 2 nasty problems to solve in C++ and I am wondering is someone that knows C++ can help.

1st one is about 'row' and an user must use a recursive function to extract all negative numbers that are provided in that row. (the row will be given from the first place e.g. : row[20] )

2nd one is about a matrix from which I must extract the seems negative numbers ( like -2 -4 -6 -8 etc) and after getting them , I need to multiply them (each with another (like -2*-4*-6*-8 = result) ).

Can anyone help please ?
  #2  
Old 12-Feb-2009, 19:57
Mexican Bob's Avatar
Mexican Bob Mexican Bob is offline
Member
 
Join Date: Mar 2008
Location: Chicxulub, Yucatán
Posts: 226
Mexican Bob is a jewel in the roughMexican Bob is a jewel in the roughMexican Bob is a jewel in the rough

Re: Use a recursive function to extract all negative numbers


Quote:
Originally Posted by SunYatSen
Hello there ,
I have 2 nasty problems to solve in C++ and I am wondering is someone that knows C++ can help.

1st one is about 'row' and an user must use a recursive function to extract all negative numbers that are provided in that row. (the row will be given from the first place e.g. : row[20] )

2nd one is about a matrix from which I must extract the seems negative numbers ( like -2 -4 -6 -8 etc) and after getting them , I need to multiply them (each with another (like -2*-4*-6*-8 = result) ).

Can anyone help please ?

Should we assume that a "row" is part of a matrix or that the caller of the recursive function is going to provide just the row of data and not the whole matrix to the recursive function?

Maybe you should provide at least a function prototype of what it is that you want for each "problem?"


MxB
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Web Server newbie problem niss3 Apache Web Server Forum 1 13-Apr-2009 19:38
Torrents Download Problem chandeep Computer Software Forum - Linux 7 09-Oct-2006 23:37
Graphic problem in Unreal Tournament 2004 zerox Computer Software Forum - Games 10 09-Oct-2005 13:31
Runtime Problem involving "printf" in C Program supamakia C Programming Language 2 09-Oct-2005 11:09
a significant problem after installing Xp mohammad Computer Software Forum - Windows 10 09-Aug-2005 08:03

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:28.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.