User Profile

Collapse

Profile Sidebar

Collapse
sajenia
sajenia
Last Activity: Nov 8 '06, 04:28 PM
Joined: Oct 17 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sajenia
    replied to help with classes in c++
    in C
    thanx, will give the code a try n let u know how it goes on my compiler. thank u!!...
    See more | Go to post

    Leave a comment:


  • sajenia
    started a topic help with classes in c++
    in C

    help with classes in c++

    i have written a program to generate prime integers between 1-7000.
    here is the code.

    #include <stdio.h>
    main()
    {
    int number,div,if_p rime,primes=0,p ri,es1=0,primes 2=0,primes3=0,p rimes4=0,primes 5=0,primes6=0;
    for(number=2;nu mber<=7000;numb er++)
    {
    for(div=2;div<n umber;div++)
    {
    if(number%div== 0)
    {if_prime=0;
    break;
    }
    if_prime=1;
    }

    if(if_prime)
    {
    if(number>1
    ...
    See more | Go to post

  • sajenia
    replied to reading from a textfile into an array
    in C
    i don't even understand this line of code that u've sent. can u elaborate. what is a vector anyway?...
    See more | Go to post

    Leave a comment:


  • sajenia
    replied to reading from a textfile into an array
    in C
    having problems with array declaration. is it suppossed to be a one-dim array or a two-dim array?
    i have managed to have the program read from a textfile but it is not storing into an array. displaying the senteces has to be from an array not from the textfile as it is doing....
    See more | Go to post

    Leave a comment:


  • sajenia
    started a topic reading from a textfile into an array
    in C

    reading from a textfile into an array

    i need to write a program in c++ that is going to read English sentences from a textfile, a line at a time and store them in an array. the file has 100 sentences each occupying a single line.
    See more | Go to post

  • sajenia
    started a topic graphics in c++
    in C

    graphics in c++

    i wrote a program to generate prime numbers in the interval 1-7000 and that determines which of the given sub-intervals(1-1000, 1001-2000, 2001-3000, 3001-4000, 4001-5000, 5001-6000, 6001-7000) contains the most prime numbers.
    my program is already producing the output as per sub-interval.
    having determined all of the sub-intervals, i need to draw a bar-chart showing the number of primes in each interval.
    the graph has to be...
    See more | Go to post

  • sajenia
    started a topic working with textfiles in c++
    in C

    working with textfiles in c++

    a text file contains a number of English sentences and each line in the file holds just one sentence. consider a class which will perform the following:
    1 reads these sentences and stores them in an array
    2 displays the sentences from the array created in 1
    3 sorts the sentences into alphabetical order
    4 given a word, determines how many times the given word occurs in all the sentences.

    please, any one out...
    See more | Go to post

  • sajenia
    started a topic data store simulation

    data store simulation

    i need to design a solid data store device. the prime use of the data store is to store text messages, with each message being structured as a linked list.
    the logical concept of the store will be a continous finite stream of cells, each cell to be capable of storing just one character of a message. any message might occupy one or more blocks of cells. thus the need for a linked list data structure.
    in addition to the cells that store...
    See more | Go to post
No activity results to display
Show More
Working...