Should I take the return -1 out of the loop?
Type: Posts; User: partnole
Should I take the return -1 out of the loop?
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#define SZ 100
typedef struct
{
char owner[SZ];
char type[SZ];
I need help to open a text file and to search for an ID number and search by name.
#ifndef _LIST_H
#define _LIST_H
#include <iostream>
#include <string>
#include <stdlib.h>
Hello,
I need help getting started on a two dimensional array with an enumerated type for the indices to store a table.
Example:
______________________________________
I have a question on how can I use the member function INPUT to ask the user to input all the elements of the array and then to display all of the elements using DISPLAY?
#include <iostream>...
For example: If I wanted to evaluate from 2 to 8 base then my code would be (n%4)?
This is exactly what I am trying to figure out.
I just don,t seem to be on the right track with my code.
Any suggestions.
Thanks
Sorry,
what I am asking is: how can I get the input from one base and give the value in other bases. For example, base 2, 8, 10, 16. Also I would like to take an integer and output it as a binary...
How can i do this ? To add to the output.
cout<<" base 2:" << bin << endl;
cout<<" Deciaml:" << bin << endl;
cout<<" Octal:" << bin << endl;
cout<<" Hexadecimal:" << bin <<...
I want to input it as a decimal and a binary and cout it as a decimal binary oct and hex numbers.
I believe I am on the right track, yet i cannot get the right code to input it as a binary and...
This I know I have the output for decimal but I would like to know how to cout the input from on base to another in binary. Any suggestions?
How can I use the cout and cin function to enter an integer whose input base is 2 and the value is 10000110, then the value in base 10 is 136?
#include <iostream.h>
void to_binary(int i);
int main()
{
int i;
//Where am I going wrong?
//I am trying to convert numbers from one base to
// any other base.
// Converts numbers from any base to any other base.
#include <iostream.h>
I need help in writing a program wich outputs the size of all the simple data types along with the minimum and maximum values for each of these simple data types. Is there a way to do all of this in...