Message from @Perihelion - CA
Discord ID: 407924036132274176
Then maybe I don't understand the question. "How do I create an array of strings" is your question, and the second answer in that StackOverflow pretty much covers it.
For multiple cases.
No, I know how to create an array of strings. My question is how to modify individual characters of the strings within said array.
The answer to that is in there if you read carefully.
```c
char a[2][14];
strcpy(a[0], "blah");
strcpy(a[1], "hmm");```
You're talking about this? Wholesale string copy?
Are you wanting to hit the individual characters in the string and substitute? I think I did miss the gist of what the question is. You have variable length strings, in an array structure (pointers to a bunch of strings) but you want to change just individual characters at will?
It is an array of three strings, each of which is three characters long. It starts out with each string being `"000"`. I need to be able to reach in and change the zeroes to ones where necessary.
Aha.
But you want to reach in and "touch" each one individually, at will.
Pointer math
Yes.
Add data type size to array pointer to access each char
Assuming your language won't let you index the array like a normal person
That's all indexes are anyway. Array pointer + index * data type size
Well I mean, obviously it won't.
So do like `*array + (sizeof(char) * 2)`?
Yes
@Perihelion - CA Nope, "lvalue required as left operand of assignment"
I think you have to use &array to let it know you're treating the array like a bit literal
Array + 2 for mem address reference
I'm having a weird problem. Anybody wanna help?
@sigruna14 shoot
@sigruna14 is it a C thing?
Yeah but it works now. Actually you want the code? See if you can break it. I think it's working. Still need to document it but I can tell you what it accepts.
Yeah let's do it man @sigruna14
Okay, I'll DM it to you. But first I'm gonna try to change how I find the command line args to be a little less ridiculous.
Ok!
Hey does anybody know how to put music behind a video I’m editing… I’m using iMovie app
@Deleted User you just have to have an audio file on your phone. Select the plus on the left side and then select audio.
@JesseJames many times it won’t allow me to upload the song..”copyright” infringement is what the message says... I just (like five mins ago) bought a GoPro .... will that be easier to operate ya think ?
The GoPro editor is really good. I like iMovie though because I know it better. Where did you download the song from? Also you will have the same problem with copy rights on GoPro editor also. The best thing to do is find music on soundcloud that is royalty free. @Deleted User
I need a WordPress guy
@everyone
I need a c++ guy
Thanks @JesseJames
@Deleted User what would that entail?
Dm me, I'm in class @Deleted User
@Deleted User I'm pretty good with C++ fam