Search:

Type: Posts; User: Izzy98

Search: Search took 0.01 seconds.

  1. Display the total number of objects. Is my program correct?

    #include<iostream>
    using namespace std;
    class Object
    {
    public:
    static int nb_of_objects;
    Object ()
    {
    nb_of_objects++;
    }
  2. Thread: Pointers help

    by Izzy98
    Replies
    5
    Views
    985

    Pointers help

    Why does aptr-a still prints a value 10 even when the ptr moves outside the array? Shouldn't it give error? How is 10 printed?


    #include<iostream>
    using namespace std;
    int main()
    {
    int a[3]...
  3. Need URGENT help with use of Pointers and Structs to print holidays program

    This code
    https://www.facebook.com/notes/isabella-masen-fanfic/c/1724946114402463
    prints a calendar program but i need help with using struct and pointers to print a character next to a date and...
  4. Replies
    1
    Views
    1,721

    For Loop understanding

    This program gives 2 2 2 as output but i don't get how? According to my understanding,
    Initialization Cond Increment
    0 true 1 so 1+2=3 should be printed...
  5. Replies
    3
    Views
    2,878

    Ok Got it thanks. How can I display a holiday...

    Ok Got it thanks. How can I display a holiday name right beneath the date in a calendar? Like Christmas underneath 25 December?
  6. Replies
    3
    Views
    2,878

    Calendar Program for any Year HELP please!

    I need help figuring out how can I modify the given code to print national holidays of a county e.g. for if I wanted to print Labour Day next to may 1, Christmas holidays next to 25 December how do...
  7. That makes more sense.

    That makes more sense.
  8. 0! = 1

    0! = 1
  9. Help Understanding Logic of this program to print the value of e

    I get the factorial part but what is why have we used n . What is accuracy, degree, and what is meant by while( n <= accuracy )
    Write a program to compute the value of e
    e=1+1/1!+1/2!+1/3!+⋯


    ...
  10. Replies
    4
    Views
    2,218

    Yes now I realize my mistake. This code works,...

    Yes now I realize my mistake. This code works, thank you very much all!
    insert
    #include<stdio.h>
    int main()
    {
    int i, value, sum = 0, number;
    printf("Enter the number of integers to be...
  11. Replies
    4
    Views
    2,218

    Oh ok, I entered ampersand and the error for...

    Oh ok, I entered ampersand and the error for number vanished but uninitialization error for value still remains.
  12. Replies
    4
    Views
    2,218

    C program does not take input from user

    Error of uninitialized variable for value and number shows up. Why can I not enter those numbers?
    insert



    #include<stdio.h>
    int main()
    {
    int i, value, sum = 0, number;
    ...
Results 1 to 12 of 13