|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hello,
I am trying to declare a string array that looks like this string quest[4000][30]; It will compile but everytime i run i get the error message ''An unhandled exception of type 'System.StackOverflowException' occurred in 3304.exe'' If i take the array from 4000 down to 362 it works but at 363 or higher i get the message. does anyone know why. also is there a way to take a line of text and have it start and stop at certain characters such as '<' and '>' and have it save that as a string in an array. If you can help the first question is most important. thanks |
| Sponsored Links |
|
|
|
|||
|
What are you doing that you need that big of a 2-dimensional array?
|
|
|||||
|
creating an array of 120,000 strings is likely to use a LOT of memory.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
|
|||
|
ok i figured out the stack error but now i need to know about the string and the character with in the string. I need a way to read a sentence like <aaaa>bbbb</cccc> with no spaces and be able to seperate it using the charachters < and >. so i get three string <aaaa> and bbbb and </cccc>.
let me know if you can help thanks |
|
|||
|
You could also use scanf to split the array much faster. For example:
scanf("<%s>%s</%s>",str1,str2,str3); |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with pointers and string array. C. | Cheer | C and C++ | 2 | 03-19-2008 08:00 PM |
| SecurityAudit | vinay | Visual Basic Programming | 27 | 01-07-2008 01:14 PM |
| [SOLVED] Find string in array | mevets | Python | 1 | 10-09-2007 10:38 PM |
| Is string in array? | smith | Perl | 2 | 02-14-2007 02:30 PM |
| Accessing a string by array | Saint | C# Programming | 3 | 10-03-2006 08:33 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |