|
-
Mar 13th, 2002, 12:55 PM
#1
writing to an array in VC++ 6
-
Mar 13th, 2002, 01:12 PM
#2
Frenzied Member
Writing to what kind of an array? Write what?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Mar 13th, 2002, 03:02 PM
#3
Fanatic Member
Code:
//char array to make a string
char hello[7];
hello="hello";
//write a number to each
int numbers[11];
for(int i=0;i<11;i++){
numbers[i]=i;
}
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Mar 13th, 2002, 08:51 PM
#4
o
heres what we are suppoed to do....
have someone enter a phone #, re print whate they typed, but after that, you have to see f there were any letters, if tere were, translate them into numbers, so i have to search the array it was stord in how?
-
Mar 13th, 2002, 08:59 PM
#5
Fanatic Member
well i assume its a int array.
so you would use a for loop and loop through it, and check if it's a character. if it is, use a if/else or switch/case to check the letter and assign teh right number.
is this for school? you should have learned how to do it
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Mar 14th, 2002, 12:50 AM
#6
no
no.. im tring to figure out diiferent ways to use arrays, i had pascal back in the day, and we did a program like it , and wated to ty it in C++
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|