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...
Type: Posts; User: Sridar
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...
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>
I prefer this.
#include <iostream>
#include<string.h> //not needed if using DEV C++ IDE
using namespace std;
string usrName; // stores the users name
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...
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...
And how would i do that?
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...
You have some basic errors
here is the correct code:
// Addition Program revised
#include <iostream>
using namespace std;
Here is a scroller program that i made
/*
Name: Scroller
Copyright: 2005
Author: Sridar Ravi
Date: 05/04/05 18:31
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...
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?
Try using
cout.width(#of characters that the console screen can hold);
cout.setf(ios::center);
cout<<"Hello World";
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.
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...
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...
Try this
for(long i= 0; i<100000000000000; i++);
Put this where u want to pause the thing.
What the heck does all that mean?
U cant make one circle without that? I am surprised!
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>,...
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...
I am a beginner( newbie) and I have no idea what that program does. Can u explain it to me?
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...
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,...
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)
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...
*Sridar bangs his head on the desk*
!bang,bang,bang!
Thank you so much Corned Bee