Hi guys, Im facing a serious problem and I need your help please!
what Im facing is that Im getting value from another function as integer
which they are :
{5,1,2,3,4,5}
so those value exactly I...
Type: Posts; User: Brian_Teir
Hi guys, Im facing a serious problem and I need your help please!
what Im facing is that Im getting value from another function as integer
which they are :
{5,1,2,3,4,5}
so those value exactly I...
solved!
the output should be like this:
{{1,2,3,4},{6,7,8,9},{9,5,6,7}}
two dimensional array that every row is an array type Byte corresponded to the extracted substring ..
Im trying to convert the specific substring that I extract it from a given string to type Bytes in an array, Byte for is unit8_t , so every 8 bits in the substring I want to convert them to type...
Thanks for your hint!
this is the code that I have done for finding the first index of every appearance of my searched pattern.
#include
using namespace std;
main() {
string str1 =...
I want to implement in C/C++ function that its input is an array of chars like char string[]="01010101000111000111000111000111000111000111000111000111000111000111000111000111000111" and to search on...
Appreciate your effort , but you're making it hard for me while you explain about other conversions(like other codes you attached :) but any way thanks alot for your answer )
So if I understand you...
first thanks alot for your effort, secondly I want to understand because understanding is more significant for me. lets assume I have rxbuffer with size 18 so 18/8 is 2 and the reminder is two...
I've done this code but it doesn't give me the correct result, any help? thanks alot.
unsigned int bitsToBytes(unsigned char *bits)
{
unsigned int sum = 0;
for(int i = 7; i >= 0; i--)
{...
So here byte will be an array that has all the values that I converted? and you mean 8 times , in other worse to do 8 iteration by increasing i 8 times?
for your question if it's not dividable...
Hi guys,
I have binary array called...
Hi salem, to be more frankly, it's not assignment, it's something that I want to do for my own purpose to solve big problems that we are straggling every day.
in a simple way I want to calculate the...
Hi guys!
I have a serious problem and Im trying to solve it but I have no offense how could I start and which approach or blueprint to get started with.
my problem is that I want to do a program...
I may didn't understand the algorithm itself, it sounds complicated for me but actually from your words it's not, could you explain it for me in brief words? thanks
didn't understand anything there, wtf it's really complicated ..
Hi guys, Im facing a serious problem and not finding an optimal way to solve it , I have to implement square root function that gets in its input double x , double toleration and the output must be...
Hi guys, I've read about return and didn't understand that much about its functionally in C programming .
what's confusing me is that if I have code after return function then the PC will neglect...
So the compiler is doing that? and not the PC.
if so, then who's made/programmed the compiler sounds that he done something stupid because if it's out of the limit why should the compiler be free...
Hi guys, there's something confusing me about size of data type and not making sense for me which I need more elaboration about this point.
lets assume I define in my compiler
short x =...
Hi guys ;
how could I sort an array of integers with fixed size in a random way? I mean by random way, is sorting the array randomly, choosing every time new element in the array to check .. how...
Hi guys, something confusing me and I want to understand it.
once I open for instance Visual Studio 2019 for C/C++ programming , and start writing code on the IDE but still not compile it, so I...
Hi , im trying to do scheduling between two process/threads that I have one shared memory , one process is writing and other process is reading, I have function void write , and function void read ;...
Hi ;
Regarding to initializing array with size variable isn't allowed in c, what confusing me is that lets assume I have like this-
int n=add(5,6); //add is a function type int that return 6+5...
thanks
TO BE HONEST, I didn't understand what do you mean with non-static local object, may you attach example -simple example- to ilustrate it more? thanks alot