Search:

Type: Posts; User: Swadesh

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,972

    Error: Incomplete type is not allowed?

    #pragma once
    #include "product.h"


    class DataStore
    {


    public:
    unsigned int findPrice(int id, Product dataStore[], int size);
  2. @ whileflags: Thanks for this, now I can follow...

    @ whileflags: Thanks for this, now I can follow the thread you gave to see the corrections.

    Thanks again
  3. Thanks, That solved it. However, "Alex Allain"...

    Thanks, That solved it.
    However, "Alex Allain" in his C++ book wrote the following code without the declaration you mentioned.

    I guess he made mistake.
  4. Compiler Showing Errors When Getting Address of a Variable?

    #include <iostream>
    #include <string>

    using namespace std;

    int main()
    {

    int x;
    int p_x = & x;
  5. I am using Visual Studio 2010, can you tell me...

    I am using Visual Studio 2010, can you tell me how I can use the C++11 features?
  6. Error 1 error C2552: 'data' : non-aggregates...

    Error 1 error C2552: 'data' : non-aggregates cannot be initialized with initializer list c:\users\swadesh\c++ programs\pointerz\pointerz\pointerz.cpp 6
    Error 2 error C2143: syntax error : missing...
  7. Hey, the following code you gave me is not...

    Hey, the following code you gave me is not executing, is giving errors.
  8. How would I display the results in a bar graph way?

    How would I display the results in a bar graph way?

    Currently it does, depending on the count:


    *
    *
    *
    *
    *
  9. Replies
    6
    Views
    2,399

    The program seems to work fine with negative...

    The program seems to work fine with negative numbers,


    while(choice < 1 || choice > 3);

    Doesn't this take care of it?

    Thanks for all the replies :)
  10. Replies
    6
    Views
    2,399

    Here's How I came about it, its also revised code...

    Here's How I came about it, its also revised code with help from: Matticus
    #include <iostream>#include <string>
    using namespace std;


    int main( )
    {


    int choice = 0;
  11. Replies
    6
    Views
    2,399

    How to add message at end of loop.

    Problem:



    #include <iostream>#include <string>
    using namespace std;


    int main( )
    {
  12. This Is How I managed To Solve. #include...

    This Is How I managed To Solve.


    #include <iostream>#include <string>


    using namespace std;


    int main()
  13. [Newbie Programming] How to increase/increment the size of a string variable..

    So I want to create step/waterfall type effect using string.

    I have managed to draw a single step. However, everytime the program loops I want it to increase the size of the step.

    ie:


    *...
  14. Replies
    7
    Views
    1,720

    Hey, actually I was following what you said.. ...

    Hey, actually I was following what you said..

    Is this legal:


    char outFileName[10]; // Variable that stores the filename user wants
    cout << "Set the output file name: ";
    ...
  15. Replies
    7
    Views
    1,720

    Here's the new code file #include...

    Here's the new code file


    #include <iostream>#include <fstream>
    #include <string.h>

    using namespace std;


    int main()
  16. Replies
    7
    Views
    1,720

    Input / Output - How to Create File?

    Hey, Currently I making a little program that takes: Clients name and then the tracking code for that client and saves it in a 'char array'

    However, my following code is not producing a file:

    ...
  17. Hey manasij7479 The first method you said works...

    Hey manasij7479
    The first method you said works well, doesnt matter if I am getting line or using the >> operators

    Thanks
  18. Could you elaborate more please.., am quiet a...

    Could you elaborate more please.., am quiet a noob

    Thanks
  19. what if I am storing file contents in such way......

    what if I am storing file contents in such way... How would I do it then:


    while (!fakeans.eof())
    {
    for (int i=0; i<MAXQUES; i++)
    {
    fakeans >>...
  20. How do I remove a specific character.. when finished reading a file..

    Brief history about me.
    Hey, Kind of Noob and started programming recently.

    My situation
    I have file that has content written as:



    25_Cents 15_Cents 40_Cents
    14_Inches 6_Inches 18_Inches
  21. ^ Hey, Thanks that seemed to grab the line.. ...

    ^ Hey, Thanks that seemed to grab the line..

    Thanks Again..
  22. How Do I read whole line, rather than just strings before Space?

    Brief history about me.
    Hey, Kind of Noob and started programming recently.

    My situation
    I have a Text file that contain 7 questions and I want to read those questions from a text file, full...
Results 1 to 22 of 23