Hi i was wondering how to set a float to print out only two decimal places, when it is outputted to the screen.
The program involves money and you cant have 3 decimals with currency.
Example
...
Type: Posts; User: LostNotFound
Hi i was wondering how to set a float to print out only two decimal places, when it is outputted to the screen.
The program involves money and you cant have 3 decimals with currency.
Example
...
Is there any way ina console c++ program to print with a printer that runs off usb
What I really dont understand is basically the function prototype. I dont understand why there are two ** before the root, i dont know what int(*cmp) is for and i dont understand the basic setup of...
As I am a fairly new c++ programmer I was given this mergesort, for a linked list. I do not quite understand it, if someone could comment it it would be much apreciated.
struct node {
...
Is there any way in console c++ program to send a bitmap from and external file directly to be printed by the default printer.
I was wondering i there was a compiled list anywhere of system commands i can use in my console c++ programs.
Examples
system("pause");
system("color 1F");
The problem is I dont know any...
Thanks PJYelton that works great with my linked list. Appreciate it.
Hi, I have a program that displays nodes in a datbase. The problem is a lot of the fields are too long when I display them. Is there a c+++ output mainpulator that when a field is displayed to only...
Ive read other posts but they havent helped. Could someone tell me how to load a bitmap into a console c++ program and display it to the screen. Note this is a visual c++ program, so please dont tell...
Hi this is probably the last question ill ever have to ask. I was given some source for a mnerge sort for a singly linked list as followed.
struct node {
struct node *next;
char...
Hi I have a singly linked list and know how to add to the end of it but am unsure of how to add it to the linked list so that a node is placed inbetween nodes of similar CustomerNumber, I even have...
Thanks for the suggestion Salem everything is working good now
Hi this is code simply compares an entered string of characters with a binary file entry. The only problem is when the two character arrays are compared and are the same they program is trating it...
How do you write and/or read a character array to a file using a binary file stream. Thank you.
Actually one more question. I know I can overwrite data ina binary file but say if I wanted to delete a binary 0 or 1 completely how could i do it.
Thanks IfYouSaySo you just solved my problem, thanks tot he binary I/O suggestion I can fullfill the requirement of direct access. Thanks again.
This is the basic sturcture for my sturcutre for my linked list, I am in desperate need of some help on an algortim that could quicksort by the year. Ive tried many things but I can't get an algoritm...
Is there a way to sort via a quicksort a singly linked list.
Lol, i didnt mean it that way. I do though have a linked list thats fully functioning and the deleting, adding, and all other functions work with it. TMy problem though is that a requirement is to...
Can someone post some code (preferably commented) of how to directly delete and search for a record in a flat text database, without completely reqwiting the database just deleting a single entry....
Yeah but none of them are commented well
Could someone post a commented example of a merge sort of a singly linked list , or provide a link to a good commented example. Thank you. Its for a program where the linked list is of nodes...
Can someone please tell me a way to send directly to a printer a gif, jpg, or generally any picture file in a console c++ program to the be printed. Thank you.