Search:

Type: Posts; User: Sridar

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Error connecting from Dev C++ to MS Access Database

    I am just starting out in trying to access a MS Access Database from DEV C++. I have the database all set up and I am trying to read the data/ The problem is that there are errors which I do not...
  2. Replies
    4
    Views
    1,302

    That site is kinda iffy. So do i just say,...

    That site is kinda iffy. So do i just say, GetSystemTime() and use the time.h library?


    Will this work?

    example:


    #include<iostream>
    #include<time.h>
  3. Replies
    8
    Views
    1,325

    I prefer this. #include ...

    I prefer this.




    #include <iostream>
    #include<string.h> //not needed if using DEV C++ IDE
    using namespace std;

    string usrName; // stores the users name
  4. Replies
    4
    Views
    1,302

    Getting system Date

    I was looking in the FAQ's but the topic was pretty unclear. I want to know how to get the date from the system. Can anyone tell me the specific or recommended function to use? I want it in the...
  5. Replies
    10
    Views
    9,475

    Using Zach's way, the variable 'i' can be used...

    Using Zach's way, the variable 'i' can be used anywhere else in the main(). The other way... the variable is limited to thes scope which is the for loop.

    If u're using that variable just as a...
  6. Thread: Using fstream

    by Sridar
    Replies
    5
    Views
    2,366

    And how would i do that?

    And how would i do that?
  7. Thread: Using fstream

    by Sridar
    Replies
    5
    Views
    2,366

    Using fstream

    I am having a little trouble using fstream. Currently i am working on a project which simulates a bank. The thing is, i have a file that lists the current balances of the accounts. For example, here...
  8. Replies
    3
    Views
    873

    You have some basic errors here is the correct...

    You have some basic errors

    here is the correct code:




    // Addition Program revised
    #include <iostream>
    using namespace std;
  9. Replies
    3
    Views
    18,201

    Here is a scroller program that i made ...

    Here is a scroller program that i made




    /*
    Name: Scroller
    Copyright: 2005
    Author: Sridar Ravi
    Date: 05/04/05 18:31
  10. Replies
    2
    Views
    1,468

    Storing Data into a file

    I have created my own class called Account which can be used to make a saving account, deposit/ widthdraw money, etc...

    First the program asks for a User ID and password. Currently, I have made...
  11. Thread: help?

    by Sridar
    Replies
    10
    Views
    1,148

    O sorry about that. *Should have worn my...

    O sorry about that.

    *Should have worn my glasses*


    Normally i would catch those errors but today it slipped my eyes.
    Did u find any other errors MadCow?
  12. Replies
    10
    Views
    1,253

    Try using cout.width(#of characters that...

    Try using



    cout.width(#of characters that the console screen can hold);
    cout.setf(ios::center);
    cout<<"Hello World";
  13. Replies
    17
    Views
    2,251

    I was just mentioning an easier way to do it. I...

    I was just mentioning an easier way to do it. I honestly believe that the faqs are the way to go, but they often require u to write more code.

    The op can choose whichever he wishes.
  14. Thread: help?

    by Sridar
    Replies
    10
    Views
    1,148

    That is cause i quit debugging his code after ...

    That is cause i quit debugging his code after the the first if statement. I believe he understands his mistake now.

    The only errors are that he used "count" instead of "cout"
    and his "ifs" are...
  15. Replies
    17
    Views
    2,251

    I tried it MadCow257 and it worked for me. I...

    I tried it MadCow257 and it worked for me.
    I used BloodShed Dev compiler to make a program in which the text runs from the left to right of the screen in 1 second intervals

    Ex:

    "Hello...
  16. Replies
    17
    Views
    2,251

    Try this for(long i= 0;...

    Try this




    for(long i= 0; i<100000000000000; i++);



    Put this where u want to pause the thing.
  17. Replies
    13
    Views
    2,730

    What the heck does all that mean? U cant make...

    What the heck does all that mean?

    U cant make one circle without that? I am surprised!
  18. Thread: help?

    by Sridar
    Replies
    10
    Views
    1,148

    Here is ur problem. Look at where ur variables...

    Here is ur problem.

    Look at where ur variables are declared.

    Also in order to use random, add this piece of code at the beginning of the main() function. Include the <time.h>, <stdlib.h>,...
  19. Replies
    13
    Views
    2,730

    Graphics: Making circles

    I am a beginner in C++ and I know so far, the basics of: cout, cin,if,loops,functions, basic formatting such as cout.precision,cout.width, and i know how to use the string class.

    Ever since...
  20. Replies
    3
    Views
    935

    I am a beginner( newbie) and I have no idea what...

    I am a beginner( newbie) and I have no idea what that program does. Can u explain it to me?
  21. Replies
    18
    Views
    2,375

    I was stumped with the same problem. This is what...

    I was stumped with the same problem. This is what I did.
    Declare a variable called big and set it equal to 1000000000. This will be the largest number that can be entered. Then use a while loop to...
  22. Replies
    3
    Views
    935

    Manipulating Input

    I want to write a program in which the user enters a string and the program converts the input into uppercase.
    For example, say the user enters "January" and i store it into a string type variable,...
  23. Replies
    20
    Views
    4,649

    Yeah, show me how u put commas between a long...

    Yeah, show me how u put commas between a long without using arrays or anything complex. The most complex thing i've learned in functions (basic functions)
  24. Replies
    20
    Views
    4,649

    Help needed. Simple C++ program.

    How do i make a program using functions to get a "long" type number from the user and display it back to the screen with commas to seperate the digits.

    For example, if the user puts in a...
  25. Replies
    16
    Views
    40,832

    *Sridar bangs his head on the desk* ...

    *Sridar bangs his head on the desk*

    !bang,bang,bang!

    Thank you so much Corned Bee
Results 1 to 25 of 36
Page 1 of 2 1 2