Search:

Type: Posts; User: Brian_Teir

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Casting an array problem from unsigned int to uint8_t

    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...
  2. solved!

    solved!
  3. the output should be like this:...

    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 ..
  4. Converting all extracted substrings to array type Byte

    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...
  5. Thanks for your hint! this is the code that I...

    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 =...
  6. how to return specific string pattern from input string if searched pattern Found.

    I want to implement in C/C++ function that its input is an array of chars like char string[]="01010101000111000111000111000111000111000111000111000111000111000111000111000111000111" and to search on...
  7. Replies
    12
    Views
    389

    Appreciate your effort , but you're making it...

    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...
  8. Replies
    12
    Views
    389

    first thanks alot for your effort, secondly I...

    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...
  9. Replies
    12
    Views
    389

    I've done this code but it doesn't give me the...

    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--)
    {...
  10. Replies
    12
    Views
    389

    So here byte will be an array that has all the...

    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...
  11. Replies
    12
    Views
    389

    Converting binary array to Byte array

    Hi guys,
    I have binary array called...
  12. Replies
    4
    Views
    575

    Hi salem, to be more frankly, it's not...

    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...
  13. Replies
    4
    Views
    575

    programming problem

    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...
  14. Replies
    8
    Views
    696

    I may didn't understand the algorithm itself, it...

    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
  15. Replies
    8
    Views
    696

    didn't understand anything there, wtf it's really...

    didn't understand anything there, wtf it's really complicated ..
  16. Replies
    8
    Views
    696

    implementing square root function

    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...
  17. Replies
    1
    Views
    231

    Return function

    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...
  18. Replies
    8
    Views
    320

    So the compiler is doing that? and not the PC. ...

    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...
  19. Replies
    8
    Views
    320

    DataType in C

    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 =...
  20. Replies
    2
    Views
    286

    Sorting integers in Array

    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...
  21. Replies
    2
    Views
    336

    IDE for C programming

    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...
  22. Replies
    1
    Views
    225

    Concurrency in c

    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 ;...
  23. Replies
    3
    Views
    374

    Allocating array concept

    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...
  24. Replies
    6
    Views
    338

    thanks

    thanks
  25. Replies
    6
    Views
    338

    TO BE HONEST, I didn't understand what do you...

    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
Results 1 to 25 of 51
Page 1 of 3 1 2 3