cool thanks, how does one overload cout tho if i wanted to do that?
Type: Posts; User: kokoro
cool thanks, how does one overload cout tho if i wanted to do that?
I'm learning how to use static members/functions and what the question provided I've came up with this so far. When I run this code I get the follow message i changed around some settings trying to...
I found this code that pretty much does exactly what I want. (minus forcing the change of a date) but I don't understand it to be able to produce a similar one.
#include <iostream>
#include...
it does look complicated doesnt it.. mainly want help in my newaccount function.sorry should be
sprintf(str1," %d, %s, %0.2f,",a1.accountNumber,\
a1.givenName,a1.balance); // had...
This is not my actual code but a knock off of what i made so that i dont go copying and pastin whatever ppl send me... this is kind of a short version.
#include <stdio.h>
#include <stdlib.h>
...
so i just used the wrong loop... i used a while instead of a for loop... lol cant believe i didnt try that out before.. thanks!
If i'm trying to get user to input the newest account I would make...
my assignment gave an example and it had to be organized this way... is their no other way to loop it without reversing it? and your recordNum would be equivalent to accounts possibly?
Currently my code outputs to what I want it to do (print out everyone's given name) shown below:
#include<stdio.h>
main()
{
struct acct
{
int accountNumber;
char givenName[20];