#include<iostream>
using namespace std;
class Object
{
public:
static int nb_of_objects;
Object ()
{
nb_of_objects++;
}
Type: Posts; User: Izzy98
#include<iostream>
using namespace std;
class Object
{
public:
static int nb_of_objects;
Object ()
{
nb_of_objects++;
}
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]...
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...
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...
Ok Got it thanks. How can I display a holiday name right beneath the date in a calendar? Like Christmas underneath 25 December?
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...
That makes more sense.
0! = 1
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!+⋯
...
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...
Oh ok, I entered ampersand and the error for number vanished but uninitialization error for value still remains.
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;
...