Search:

Type: Posts; User: progmateur

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thanks it got resolved. Thanks for the wonderful...

    Thanks it got resolved. Thanks for the wonderful 'emplace_back' idea
  2. vector of object inside object not getting populated

    I have two class Particle and Spring.

    Spring:



    classSpring{
    private:
    double ks;
    double kd;
  3. Thank you for your time and replying.

    Thank you for your time and replying.
  4. passing vector reference gives segmentation fault

    int main() {
    vector< Base*> scene_;

    get_input(scene_);

    for(size_t i =0; i < scene_.size(); i++)
    {

    std::cout << scene_[i]->getSomething();
  5. Replies
    7
    Views
    746

    Still not working... :'( You are right about...

    Still not working... :'(

    You are right about the variable name..

    A piece of code would be very helpful



    #include <iostream>
    #include <conio.h>
  6. Replies
    7
    Views
    746

    well ,i get what you said and did this...

    well ,i get what you said and did this accordingly...but without results :(
    please enlighten @tabstop


    #include <iostream>#include <conio.h>


    using namespace std;
    class Node//BST node
    {
  7. Replies
    7
    Views
    746

    Well,but when I was checking whether the tree is...

    Well,but when I was checking whether the tree is properly inserted or not..I see that the insert() is malfuctioning..please help

    I was incorporating functions like...


    void Display()
    ...
  8. Replies
    7
    Views
    746

    BST program terminating abnormally

    I am creating a BST class that has insertion and traversal function (USING RECURSION)..please tell me why this program is termination abnormally..



    #include <iostream>#include <conio.h>

    ...
  9. Replies
    2
    Views
    615

    operator overloading problem

    I am designing a class FLOAT with overloaded operations


    #include <iostream>#include <conio.h>
    #include <math.h>
    using namespace std;


    class FLOAT
    {
  10. Replies
    5
    Views
    489

    string problem

    I was trying to implement my own "String" class.
    I have written the class and the following error occurs.

    1.When I create 2 String objects in main function only one string is getting inputted and...
  11. making the fields in the Node class public solves...

    making the fields in the Node class public solves the problem..but the implementation I believe becomes very much faulty and disrupts OOP concept
  12. trying to implement linked list using inheritance

    not inheriting properly
    please tell me the reaseons
    and provide the corrected code if possible


    #include <iostream>

    using namespace std;
  13. Replies
    8
    Views
    931

    very smart...but this is not a home work problem...

    very smart...but this is not a home work problem
    The triangle pattern that I wanted tp print had '*'s in ascending form like 1,2,3,4,5,6...
    But my code printing it in form of 1,3 ,5,7,....
    ...
  14. Replies
    8
    Views
    931

    This isnt a home work problem The triangle...

    This isnt a home work problem
    The triangle pattern that I wanted tp print had '*'s in ascending form like 1,2,3,4,5,6...
    But my code printing it in form of 1,3 ,5,7,....
  15. Replies
    8
    Views
    931

    usual pattern unusual problem

    Q.print triangle pattern using one loop and recursion

    eg: 5

    13268


    #include <stdio.h>#include <conio.h>
    void pattern(int n,int N)
    {
  16. Thread: few doubts

    by progmateur
    Replies
    8
    Views
    640

    few doubts

    Q1.



    #include <stdio.h>#include <conio.h>
    int main()
    {
    char c=125;
    c=c+10;
    printf("%d",c);
  17. very kind of you...now I understand the meaning...

    very kind of you...now I understand the meaning of forward declaration! :)
  18. I would be greatful to you if you ellaborate...I...

    I would be greatful to you if you ellaborate...I am new to c++.. a block of code as an example will help
  19. It didnt work......... errors: In...

    It didnt work.........

    errors:

    In instantiation of `NODE<int>':
    34 instantiated from `STACK<T>& STACK<T>::PUSH(T) [with T = int]'
    66 instantiated from here
    8 template argument...
  20. just trying a straightforward...

    just trying a straightforward implementation...later Ill modify my code as per my requirement thank you
  21. yes I did heres the code #include...

    yes I did heres the code


    #include <iostream>#include <conio.h>


    using namespace std;


    class NODE
  22. trying to implement stack using class template

    I am getting errors...please rectify my code or atleast point out where I am wrong


    #include <iostream>#include <conio.h>


    using namespace std;


    template <class T>
  23. trying to implement linkedlist using class template

    I am getting errors...please rectify my code or atleast point out where I am wrong


    #include <iostream>#include <conio.h>


    using namespace std;


    template <class T>
  24. Replies
    3
    Views
    997

    thank you very much I have already got that...

    thank you very much I have already got that ...thanks for responding :D
  25. Replies
    3
    Views
    997

    please debug the following code....

    Was trying to implement a simple linked list program using c++ with only insert and display operations.There was no problem during compile time...the result was absent

    Compiler Used:

    DEV...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4