this code will only work for arrays declared as char]
char name[25][25];
i need the code for the declaration:
Type: Posts; User: niroopan
this code will only work for arrays declared as char]
char name[25][25];
i need the code for the declaration:
i dont know how to compare the first character with the inputted value.
for(int x = 1; x <= 5;x++)
{
if(start_with == name[x][0])
{
hi. i was looking through the "help" in C++ and found a search and attempted to mod it for searching through arrays. Unfortunately, it was unsuccessful.
say i have the an array of name[5] of:
...
say I have this code.
#include <iostream.h>
#include <conio.h>
#include <cstring.h>
main()
{
look up strtok()
if you do setw(), then you have to do a number of things to center.
#include <cstring.h>
#include <iostream.h>
#include <iomanip.h>
main()
i need the code that is similar to strlen(), but since i'm using cstring it will not work. I need the code which will count the number of characters in a variable, using a command which is not in...
need the code for cstring counting:
this is string counting:
#include <string.h>
...
i have this lib: #include <cstring.h>
string message;
length = strlen(message);
not that, its an actual .cpp file.
i downloaded a c++ program from a person on this site, and everytime i open MSN window, a message comes up to go to an address, which is a place to download the program. Does anyone know how to get...
i tried this, but it gives me errors.
#include <cstring.h>
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
#include <stdio.h>
this is what I have so far.
#include <cstring.h>
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
main()
how do i make it read up to the first space?
hello everyone, i have a problem. Im reading a .txt file in like this:
Doe,John 20
it fills the array: list[10]
I would like to put 20 into an integer array, and Doe, John...
ill post it all... :/
This is spree.cpp:
//Program Name: spree.cpp//
//Revision Date: 2002-11-08//
//Explanation: To create a shopping spree program//
Unresolved External 'menu(double, double, double&)' referenced from ...
what does this mean in simple language
the other ones work without prototypes...
i dont know what prototypes are so could someone write one where i need it for the libraries i have posted please.
how come it cant find it...
This is select.h with the menu function:
#ifndef _SELECT_H
#define _SELECT_H
#include "center.h"
how would i do this
array[0] must be blank im pretty sure of this.
could you post the editted code please, i'm a beginner so a really need to see what the code looks like
#include <time.h>
#include <iostream.h>
int main(void)
{
time_t t = time(NULL); //calls time function
cout << ctime(&t) << endl; //display of time
}
can someone tell me what is wrong:
void input(char& *first,char& *last,double& winning_amount)
{
cout <<"What is your name( first last): " ;
cin >>first;
cin >> last;
i just want it for myself