• Member Avatar for nitin1
    nitin1

    Began Watching Difference between Java and c++

    Does C++ consider \/ as an escape character? And does Java consider it? I am talking about forward and backslashes. Please tell. How does Java and C++ considers them differently? …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Is it the correct json string made?

    I know there is validator. But I want to know it is the correct json that should be made from that data. I am confused about those slashes. How they …
  • Member Avatar for nitin1
    nitin1

    Edited Is it the correct json string made?

    I am creating one json array using Json-glib using c++. Here is the data: title="Daniweb" (string) last= 1234 (long) icon="icons" (string) url = "[\"dani.com\"]" (json array) After making one json …
  • Member Avatar for nitin1
    nitin1

    Created Is it the correct json string made?

    I am creating one json array using Json-glib using c++. Here is the data: title="Daniweb" (string) last= 1234 (long) icon="icons" (string) url = "[\"dani.com\"]" (json array) After making one json …
  • Member Avatar for nitin1
    nitin1

    Began Watching Is it the correct json string made?

    I am creating one json array using Json-glib using c++. Here is the data: title="Daniweb" (string) last= 1234 (long) icon="icons" (string) url = "[\"dani.com\"]" (json array) After making one json …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Assigning a byearray to a void pointer

    But the way I am doing is correct or not?
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Assigning a byearray to a void pointer

    array is a pre-defined class in a library. What can I do for that? thanks.
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Assigning a byearray to a void pointer

    bytearray is this: typedef array<byte> bytearray; and byte is this: typedef uint8_t byte; Now, please tell. "array" is just a class which show a array of something; basically a template …
  • Member Avatar for nitin1
    nitin1

    Edited How to send a list of bytearrays using CURL?

    Can anyone give me an idea how to do this? I have a list(C++) of bytearray and I want to fire a post request to the server using CURL library? …
  • Member Avatar for nitin1
    nitin1

    Created How to send a list of bytearrays using CURL?

    Can anyone give me an idea how to do this? I have a list(C++) of bytearray and I want to fire a post request to the server using CURL library? …
  • Member Avatar for nitin1
    nitin1

    Began Watching How to send a list of bytearrays using CURL?

    Can anyone give me an idea how to do this? I have a list(C++) of bytearray and I want to fire a post request to the server using CURL library? …
  • Member Avatar for nitin1
    nitin1

    Created Assigning a byearray to a void pointer

    void func(void * ptr) { bytearray temp(10); *((bytearray*) ptr ) = temp; } This code is not going ahead if the third line while executing while this coding is working …
  • Member Avatar for nitin1
    nitin1

    Began Watching Assigning a byearray to a void pointer

    void func(void * ptr) { bytearray temp(10); *((bytearray*) ptr ) = temp; } This code is not going ahead if the third line while executing while this coding is working …
  • Member Avatar for nitin1
    nitin1

    Marked Solved Status for Eclipse strange error

    I am using Eclipse and there is one strange error coming while building. In files, it is not showing any error but when I build it, it says **Description Resource …
  • Member Avatar for nitin1
    nitin1

    Created Eclipse strange error

    I am using Eclipse and there is one strange error coming while building. In files, it is not showing any error but when I build it, it says **Description Resource …
  • Member Avatar for nitin1
    nitin1

    Began Watching Eclipse strange error

    I am using Eclipse and there is one strange error coming while building. In files, it is not showing any error but when I build it, it says **Description Resource …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Cyclic dependency in classes

    @moschops That's ok. This might be typo nothing else. If I have to use Instance of B in A.h rather than pointer then? I know we cant define any instance …
  • Member Avatar for nitin1
    nitin1

    Created Cyclic dependency in classes

    Today, I faced very weird problem. I have 2 classes say class A and B. Both have one .h and .cpp files. 4 files(A.cpp,B.cpp,A.h,B.h). A class is base class of …
  • Member Avatar for nitin1
    nitin1

    Began Watching Cyclic dependency in classes

    Today, I faced very weird problem. I have 2 classes say class A and B. Both have one .h and .cpp files. 4 files(A.cpp,B.cpp,A.h,B.h). A class is base class of …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Mutilthreading in C++

    I am using LINUX system 64 bit OS for this purpose.
  • Member Avatar for nitin1
    nitin1

    Created Mutilthreading in C++

    For my project, I need to learn multithreading in C++. I have read 4-5 articles on Google, and have searched for more but they all are more or less similar. …
  • Member Avatar for nitin1
    nitin1

    Began Watching Mutilthreading in C++

    For my project, I need to learn multithreading in C++. I have read 4-5 articles on Google, and have searched for more but they all are more or less similar. …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in C Program to swap two numbers without using third variable

    Hehe. You calling me sir. :-p I can't be your sir in this generation. :) I think double representation in binary is compilcated. When I will add them, it might …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Why do I need headers at all?

    Firstly, In case, if I write all the implementations directly in the header and use it in my project. for example, if I write the <stdio.h> in all my files …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in C Program to swap two numbers without using third variable

    @James sir, You catch it. I have also thought the same when he said "number". The solution I gave will work for the int surely but it might give wrong …
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to deceptikon in Why ++ operator overloading expect (int) ?

    > but how is it resolved by compiler that which function to call? Compiler magic. `++T1` gets converted to `T1.operator++()` and `T2++` gets converted to something like `T2.operator++(0)` under the …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in What is the exact meaning of namespace?

    Actually, I am confused that what the problem was there in C and how c++ has solved it. Having namespace solves our problem by resolving the names. For ex: if …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in What is the exact meaning of namespace?

    I have updated my comment. I have added one problem in the last comment. Please see that also. Secondly, why don't we have namespce thing in C? Why do we …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Why ++ operator overloading expect (int) ?

    but how is it resolved by compiler that which function to call? Who resolves this thing from the code compilation to source execution cycle? Thanks.
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to deceptikon in Why ++ operator overloading expect (int) ?

    > Why does it need int in postfix and not in prefix? This is a case of Bjarne Stroustup being *too* clever. The two member functions need a different signature …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in What is the exact meaning of namespace?

    But, when I use using namespace std, then I also have to use "string" header file. So what is the difference between them? If everything is defined in namespace, then …
  • Member Avatar for nitin1
    nitin1

    Edited Why ++ operator overloading expect (int) ?

    #include <iostream> using namespace std; class Time { private: int hours; // 0 to 23 int minutes; // 0 to 59 public: // required constructors Time(){ hours = 0; minutes …
  • Member Avatar for nitin1
    nitin1

    Edited Why ++ operator overloading expect (int) ?

    #include <iostream> using namespace std; class Time { private: int hours; // 0 to 23 int minutes; // 0 to 59 public: // required constructors Time(){ hours = 0; minutes …
  • Member Avatar for nitin1
    nitin1

    Created Why ++ operator overloading expect (int) ?

    #include <iostream> using namespace std; class Time { private: int hours; // 0 to 23 int minutes; // 0 to 59 public: // required constructors Time(){ hours = 0; minutes …
  • Member Avatar for nitin1
    nitin1

    Began Watching Why ++ operator overloading expect (int) ?

    #include <iostream> using namespace std; class Time { private: int hours; // 0 to 23 int minutes; // 0 to 59 public: // required constructors Time(){ hours = 0; minutes …
  • Member Avatar for nitin1
    nitin1

    Edited What is the exact meaning of namespace?

    I am using namespaces from a long time now. But, I don't know why we need them at the end? Why do I need to write using namespace std; OR …
  • Member Avatar for nitin1
    nitin1

    Began Watching terminal

    do u know how install fedora software
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in terminal

    You can have a Bootable CD/DVD/pendrive for fedora and put it in the device while booting up. After that, it will instruct you to have the partition and will ask …
  • Member Avatar for nitin1
    nitin1

    Created What is the exact meaning of namespace?

    I am using namespaces from a long time now. But, I don't know why we need them at the end? Why do I need to write using namespace std; OR …
  • Member Avatar for nitin1
    nitin1

    Began Watching What is the exact meaning of namespace?

    I am using namespaces from a long time now. But, I don't know why we need them at the end? Why do I need to write using namespace std; OR …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Why do I need headers at all?

    @rubberman Why will I need to update each and every source file? Can you please elaborate little bit? Please explain more. thanks.
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to sepp2k in Why do I need headers at all?

    > But, why can't we write all the functions directly in .h file and include it in my project files? Because then linking would fail with a "multiple definitions" error …
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to ddanbe in Why do I need headers at all?

    Header files also come in very handy if you are working in a team of programmers. Every programmer can use the definitions in stuff.h and compile his code, without stuff.cpp …
  • Member Avatar for nitin1
    nitin1

    Edited Why do I need headers at all?

    I was just thinking that why I need headers at all? In headers, most oftenly we have the declarations only. In .cpp we have the definitons of that .h file. …
  • Member Avatar for nitin1
    nitin1

    Created Why do I need headers at all?

    I was just thinking that why I need headers at all? In headers, most oftenly we have the declarations only. In .cpp we have the definitons of that .h file. …
  • Member Avatar for nitin1
    nitin1

    Began Watching Why do I need headers at all?

    I was just thinking that why I need headers at all? In headers, most oftenly we have the declarations only. In .cpp we have the definitons of that .h file. …
  • Member Avatar for nitin1
    nitin1

    Began Watching C++ pseudocode

    Is this a good pseudocode and can you help me write this, I am kind of new to programming. if (choice > 0 && choice < 4) //choice is between …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in C++ pseudocode

    What, and where is the problem in the code? Mention the problem you facing so that we can help you to solve the issue.
  • Member Avatar for nitin1
    nitin1

    Began Watching C Program to swap two numbers without using third variable

    // Program to show swap of two no’s without using third variable #include<stdio.h> #include<conio.h> void main() { int a, b; printf("\nEnter value for num1 & num2 : "); scanf("%d %d", …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in C Program to swap two numbers without using third variable

    There are many ways to do it. You can use the XOR operations as ruberman has done it. You can try one more method using addition and substraction: void swap(int …

The End.