error when write a class contain string to binary file [duplicate]

This question already has an answer here: Serializing a class which contains a std::string 7 answers

View details »

How to convert array to comma separate

I have this Array need to convert to comma separated Please help me out Thanks Array ( [0] => Array ( [image] => imagehUcx5.jpeg ) [1] => Array (

View details »

Overloading operator << , os gets a string

so I have problem with my code, I want to overload operator <<, all the functions are in abstract class Employee so friend std::ostream &operator<<(std::ostream &os, const Employee &employee) {

View details »

Convert String to Int without library constructors - SWIFT

Convert a string to an Integer without using the library constructors. I did some research on how to solve this using other languages. Namely iterate through the string and use ASC scale of 0 to co

View details »

Use of UnaryPredicate in string filtering function with a class argument

The usage of a UnaryPredicate is unclear to me. To illustrate my question, please see the running code below that filter a string for alphanumeric characters. I could have just replaced if(predicat

View details »

SQL Server: selecting specific values from arbitrary nodes in XML data output

I have an XML Output from machine testing that looks like this that I need to extract specific data from a node that I can't really specify for each test case: <TestResult> <MethodResult X

View details »

Giving serial number with 4 digit long failed

I have to get serial number that include Member that getting from the user and adding to the member serial number of 4 digit. if I got 888 the newMemberId will be 8880001, and in the next loop 8880

View details »

Splitting strings with regular expressions by punctuation and whitespaces but not by @ sign? [duplicate]

I am trying to replace all punctuation except the - and _ using a method I found here, but I can only get it to work on " using the exact code as posted which used a negative lookahead: (?!")\\p{pu

View details »

Define string format in function definition

This works: def this_is_a_function(string_variable: str): print(string_variable) , but is it possible to go a step further and define the format of a string in the function declaration? Somet

View details »

How to compare lists object fields with different list size

After trying several methods to compare between different object lists with object fields for example one list contains DeviceRow.ip and other list got Device.ip I tried to run on both lists where

View details »

How to compare string to string and convert them to number?

having 4 string be like "abcd", "tref", "yoiu", "pkmn" each string has it own value like abcd = 1 tref = 2 yoiu = 3 pkmn = 4 and input is like "abcd tref yoiu pkmn" in one-line and then check if inp

View details »

issue with substring indexing

Instructions for this kata: In this Kata, we will check if a string contains consecutive letters as they appear in the English alphabet and if each letter occurs only once. It seems that my code i

View details »

How to extract a number from a string of numbers in pandas and place it in a new column?

How to extract a number from a string of numbers in pandas and place it in a new column? Create a prev_pos (Previous Position) column that takes the second to last value within the hist_pos column

View details »

In DrRacket how do I check if a string has a certain amount of characters, as well how do i determine what the first character in a string is

Basically I have a problem, here is the information needed to solve the problem. PigLatin. Pig Latin is a way of rearranging letters in English words for fun. For example, the sentence “pig lati

View details »

Selecting multiple substrings from a string

I am a newbie here and I have a php array of some strings, such as {"VAL1","VAL2", "VAL3", "VAL4"} and I have a larger string that contains the array elements as substrings and other substrings. The

View details »

How can i add space between two words

I'm trying to reverse the sentence but I can't add space between two words . It crashes when i try. I assign sentence in the str to the sent in the code. void reverse(char *str) { char sent[100]; i

View details »

Merge connection strings, defaultconnection and entities

I can't merge two connection strings I try to merge connection string defaultconnection and entities. Both connections use one db. <add name="Entities" connectionString="metadata=res://*/Da

View details »

Deserialize string in Python3?

Well I have this input: a:0/2/4/6 b:1/3/5 end or a:0/3/5/11 v:1/4 j:2 m:6/9/15 s:7/13 d:8/14 c:10 l:12 end And result that I want is: abababa or avjavamsdmcalsdm My code: string = '' w

View details »

Is there a way, how to fix problem with XML structure after it's creation via SOAP service

I have a problem with XML which is given by soap as an answer on my request. It has a tag, because of which I can't work with the file I create of it. From my SOAP response I create XML of this str

View details »