Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

pointers

I really need help with this project i can't figure out how to do this.

I need to use this method:
int*intersection(const int*const, int, const int*const, int, int&){

this is what i have to use, i have to write a program using pointer. I'm supposed to have two random arrays and find the numbers that are equal to each other. And display this new array.

Comments

  • weiccoweicco Member Posts: 950
    : I really need help with this project i can't figure out how to do this.
    :
    : I need to use this method:
    : int*intersection(const int*const, int, const int*const, int, int&){
    :
    : this is what i have to use, i have to write a program using pointer. I'm supposed to have two random arrays and find the numbers that are equal to each other. And display this new array.
    :

    What's the question?
  • cdijanacdijana Member Posts: 5
    : : I really need help with this project i can't figure out how to do this.
    : :
    : : I need to use this method:
    : : int*intersection(const int*const, int, const int*const, int, int&){
    : :
    : : this is what i have to use, i have to write a program using pointer. I'm supposed to have two random arrays and find the numbers that are equal to each other. And display this new array.
    : :
    :
    : What's the question?

    how do i find the intersection ?
    :

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    [b][red]This message was edited by AsmGuru62 at 2002-9-18 8:50:9[/red][/b][hr]
    [b][red]This message was edited by AsmGuru62 at 2002-9-18 8:49:51[/red][/b][hr]
    : : : I really need help with this project i can't figure out how to do this.
    : : :
    : : : I need to use this method:
    : : : int*intersection(const int*const, int, const int*const, int, int&){
    : : :
    : : : this is what i have to use, i have to write a program using pointer. I'm supposed to have two random arrays and find the numbers that are equal to each other. And display this new array.
    : : :
    : :
    : : What's the question?
    :
    : how do i find the intersection ?
    : :
    :
    :
    [blue]Here is how to scan an array using a pointer:[/blue][code]
    [b]int[/b] array [32]; [blue]// room for array[/blue]
    [b]int[/b]* pSlot = array; [blue]// pointer for scanning[/blue]
    [b]int[/b] items = 17; [blue]// how many items inside 'array'[/blue]

    [b]for[/b] ([b]int[/b] i=0; i<items; i++, pSlot++) {
    iValue = *pSlot; [blue]// Get the value[/blue]
    [blue]// Do with 'iValue' whatever you need...[/blue]
    }
    [/code]




  • Shawn CarterShawn Carter Member Posts: 0

    _______ [ http://forcoder.org ] free ebooks and video tutorials about [ Swift Go Assembly PHP Scratch Objective-C MATLAB Visual Basic C Delphi R Visual Basic .NET C# PL/SQL C++ JavaScript Python Java Perl Ruby Scala Scheme Logo Lisp Ada Dart LabVIEW Hack VBScript ML Fortran Clojure Alice Julia Awk SAS Lua D ABAP FoxPro Apex F# COBOL Prolog Transact-SQL Bash Erlang Crystal Rust Kotlin ] _________

Sign In or Register to comment.