hi guys,
i just want to ask help again. I've created a method to read values in gridview, i was able to get and read values from the gridview. The problem now, is how can i store the values inside an array and i want it to pass on the other page.
here's the code i've created
private void getrowvalues()
{
string combined...
how can i dissect or retrieve string values
Here's the sample code that im working on now
private void SplitStrings()
{
List<string> listvalues = new List<string>();
listvalues = (List<string>)Session["mylist"];
string[] strvalues = listvalues.ToArray();
for (int x = 0; x < strvalues.Length; x++)...
Hello,
I'm currently using
char *thisvar = "stringcontenthere";
to declare a string in C..
Is this the best way to declare a string?
...
I am creating a modular ASP.NET MVC application using areas. In short, I have created a greedy route that captures all routes beginning with {application}/{*catchAll}.
Here is the action:
// get /application/index
public ActionResult Index(string application, object catchAll)
{
// forward to partial request to return partial vi...
I'm having difficulty using reinterpret_cast. Lets just say right off the bat that I'm not married ot reinterpret_cast. Feel free to suggest major changes. Before I show you my code I'll let you know what I'm trying to do.
I'm trying to get a filename from a vector full of data being used by a MIPS I processor I designed. Basically w...
Is there an easy way to create an acronym from a string in MATLAB? For example:
'Superior Temporal Gyrus' => 'STG'
...
I want a representation for strings with fast concatenation and editing operations. I have read the paper "Ropes: an Alternative to Strings", but have there been any significant improvements in this area since 1995?
EDIT: One possibility I've considered before is using a 2-3 finger tree with strings as leaves, but I have not done a deta...
function FM_log(level, text) {
// caso não seja log total escolhe o que loga
var log = false;
switch (level) {
case "addtoprio()":log = true;
case "alternaTropas()":log = false;
case "sendtroops()":log = false;
defalt: log = false;
}
if ((logTotal == false) && (log == true))
G...
Hi!
I'm totally new in C, and I'm trying to do a little application that searches a string into a file, my problem is that I need to open a big file (more than 1GB) with just one line inside and fgets return me the entire file (I'm doing test with a 10KB file).
actually this is my code:
#include <stdio.h>
#include <string.h>
int mai...
So below I have a code in C++ that is supposed to invert the arguments in a vector, but not the sequence. I have listed my problems as sidenotes in the code below. The invert function is supposed to invert each argument, and then the main function just outputs the inverted words in same order
For instance, program("one two three four")=...
I'm looking for some regular expression to help parse my CSV file.
The file has lines of
number,number
number,number
Comment I want to skip
number,number
number,number
Ex:
319,5446
564425,87
Text to skip
27,765564
I read each line into a string and I wanted to use some regular express to make sure the line matches the pattern of ...
I have a few Set<String>s and want to transform each of these into a single String where each element of the original Set is separated by a whitespace " ".
A naive first approach is doing it like this
Set<String> set_1;
Set<String> set_2;
StringBuilder builder = new StringBuilder();
for (String str : set_1) {
builder.append(str).appe...
how can i read string values
QuoteNo:32586/CustomerNo:ABCDEF/TotalAmount:32/Processed:No
i want to read the values of the strings in any order
...
How do I convert ctrl+z to a string?
I am sending this as an AT COMMAND to an attached device to this computer.
Basically, I just to put some chars in a string and ctrl+z in that string as well
...
This code give me an error:
string rus = "," + db_user.Anagrafica_Dipendente.ID_Dipendente + ",";
int i = db.CBR_User.Count(
p => p.RiceviMail == true && ("," + p.Dipe + ",").Contains(rus))
p.Dipe is a string
the error is:
Unable to create a constant value of type 'System.Object'.
Only primitive types ('such as Int32, String, an...
Guys, help me clarify.
Say i have the following line in my program:
jobSetupErrors.append("abc");
In the case above where jobSetupErrors is a StringBuilder(), what i see happen is:
New String Object is created and assigned value "abc"
value of that String object is assigned to the existing StringBuilder object
If that is correct,...
How do I restrict a string to whitelisted characters?
// "HOW am I to understand; this is, BAD"
$str = restrictTo($str,"0-9a-z,. ");
// " am I to understand this is, "
Is there an inbuilt function in PHP that does something close? I can't formulate a regular expression for this though :(
...
The goal is to avoid copying the string data when I need a const wchar_t*.
The answer seems to be yes, but the function PtrToStringChars doesn't have its own MSDN entry (it's only mentioned in the KB and blogs as a trick). That made me suspicious and I want to check with you guys. Is it safe to use that function?
...
I have some content being pulled in from an external xml with xsl. in the xml the title is merged with the author with a backslash seperating them.
How do I seperate the title and author in xsl so I can have them with differnt tags
<product>
<title>The Maze / Jane Evans</title>
</product>
to be
<h2>The Maze</h2>
<p>Jane Evans</...
char *myfunc() {
char *temp = "string";
return temp;
}
In this piece of code, where does the allocation of the object pointed to by temp happen and what would be its scope?
Is this function a valid way to return a char* pointer?
...