User Profile

Collapse

Profile Sidebar

Collapse
vinay3744
vinay3744
Last Activity: Feb 23 '08, 02:02 AM
Joined: Sep 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    #include <stdio.h>
    #include <iostream>
    #include <fstream>
    
    using namespace std;
    
    int main(void){
    
    int a[650000] , b[650000] , c[650000];
    //int x;
    std::ifstream in("myfile.txt");    
    
    for (int i=0; i<650000; ++i)    // need to use the EOF command here.
    {
       in >> a[i] >> b[i] >> c[i]; 
    }
    ...
    See more | Go to post

    Leave a comment:


  • Hi

    I have written some code about this which seems to work....but I am very new to programming and I am working on something which seems quite complicated to me and hard to explain over in a forum. is is ok if I add you on hotmail or gmail or something and then maybe you can help me with this program of mine..I would be extremly grateful!

    Thanks
    Vinay...
    See more | Go to post

    Leave a comment:


  • vinay3744
    started a topic Help with readin and writing into textfiles in c++
    in C

    Help with readin and writing into textfiles in c++

    Hello

    I am particularly new to programming working on a mathematical analysis where I have to perform some functions on a text file.

    I have a text file in this format, it contains 3 numbers in each line of the file and I need to separate each column in different files( or arrays and peform mathematics functions on them to get the solutions I need. Can you help me with the reading and separating part of the code. Thanks...
    See more | Go to post

  • vinay3744
    started a topic Help regarding dynamic allocation of 2-d arrays
    in C

    Help regarding dynamic allocation of 2-d arrays

    Hello

    I have this code

    [HTML] string **a; //pointer to pointer to a string

    int x=300;

    int y=500;



    a=new string*[x] //Allocates first dimension

    for(int i=0;i<x;i++)

    {

    a[i]=new string[y];//Allocates sub array

    }[/HTML]...
    See more | Go to post

  • vinay3744
    replied to Array of Strings
    in C
    Also if i want to input some values in the array using for functions or maybe call the array from another function in the form a[x][y]; is it possible? really apperciate ur help!

    thnx
    See more | Go to post

    Leave a comment:


  • vinay3744
    replied to Array of Strings
    in C
    hello

    is it possible to use the same syntax to declare a float array? just by changing the data type from string to float?
    See more | Go to post

    Leave a comment:


  • C++ Code for Singular Value Decompositon of string arrays.

    Hi

    I am currently working on figuring out a code for performing a singular value decomposition[U] for String arrays.

    Can some one help me get started on this. I have already done a declaration for the array of dimension 5000X3000. Now i need to perform the function on the array.

    Thanks a lot in advance.

    Vinay3744
    See more | Go to post

  • vinay3744
    replied to Array of Strings
    in C
    ohk....thats sooo coooL!!!..

    thanks man....i have just started programming and this helps a lot....

    I will keep in touch...

    cheers...
    See more | Go to post

    Leave a comment:


  • vinay3744
    replied to Array of Strings
    in C
    ok...i do not have a concrete example right now as i have just started programming for the program....but i will try explaining it again!..

    basically if i want to input a whole set of values intead of inputting values one by one, will the dynamic allocation for the string array work? or do I need to get more memory and declare the whole string array at once....??...
    See more | Go to post

    Leave a comment:


  • vinay3744
    replied to Array of Strings
    in C
    hey

    thanks....this works for now....

    but will this work when i need the whole 300 X 500 attributes at once.....cause i need to input that many values for my program....(som eting like getting input as all the search results from google!!!!)...
    See more | Go to post

    Leave a comment:


  • vinay3744
    replied to Array of Strings
    in C
    ok....i did as u suggested...

    I used the following code...

    Code:
        #include <iostream>
        
        #include <string>
        using namespace std;
        
        int main()
        
        {
            string a[30][50];
            cout<<sizeof(a);
            
            cin.get();
            
        }

    Now i am getting the output...
    See more | Go to post

    Leave a comment:


  • vinay3744
    replied to Array of Strings
    in C
    Thanks savage

    I have 512 Mb Ram right now....outta which i shud be able to spare 200 mb easily at one time....Also I am using dev c++ right now.. do you think that creates a problem?

    I have developed a following mini program which shud specify the size of an array....it works for normal int and char types....but doesnt work for a sting type....can u suggest any changes?

    #include <iostream>
    ...
    See more | Go to post

    Leave a comment:


  • vinay3744
    replied to Array of Strings
    in C
    Thanks a lot....


    Is it possbile to have array upto sizes of 3000 x 5000 in Visual C++?? Cause when i try the same thing with char; it stops at 100 x 5000.

    anyways i will try it...

    thnx...
    See more | Go to post

    Leave a comment:


  • vinay3744
    started a topic Array of Strings
    in C

    Array of Strings

    Hi

    I am stuck at this....basical ly i am very new to c+ programming and would like to know how to create a multi dimensional array of strings.

    Also i would like to create a default multidimensiona l array of strings of the size mxn = 3000 x 5000. Is it possible in C++. can u give me suggestions on this as well....

    Many thanks

    Vinay
    See more | Go to post
No activity results to display
Show More
Working...