AVR Questions for Uni

Guest #7035246
Rate this post
useful
not useful
Guess you attended the relevant course at university or school.

So better check your scripts, use your brain - and good luck

By the way - where are you from? The way u ask reminds me of some 
politicians.
Guest #7035259
Rate this post
useful
not useful
Whoever has written these questions had a stroke and needs to get into 
the hospital at once!

Oder hast du den Kram durch 3 schlechte Onlineübersetzer gewürfelt damit 
dein Prof nicht merkt das du betrügst?
Guest #7035522
Rate this post
useful
not useful
Ich bin mal nicht so!.
Sorge dafür, dass es Erklärungsnot bei Nachfragen gibt.

Also: Punkt 4 in Anlehnung an......
1
#include <Streaming.h> // die Lib findest du selber ;-)
2
Print &cout = Serial; // cout Emulation für "Arme"
3

4
// #include <functional>
5

6

7
constexpr size_t N {6};
8

9
byte test[N] {1,2,3,4,5,6};
10

11

12
template<typename T>
13
void reverse(T *begin, T *end)
14
{
15
  end--;
16
  while(begin<end)
17
  {
18
    T temp=*end;
19
    *end=*begin;
20
    *begin=temp;
21
    begin++,end--;
22
  }
23
}
24

25
void setup() 
26
{
27
  Serial.begin(9600);
28
  cout << F("Start: ") << F(__FILE__) << endl;
29

30
  
31
  for(auto v:test) cout << v << endl;
32
  reverse(test,test+N);
33
  // std::reverse(test,test+N);
34
  for(auto v:test) cout << v << endl;
35
}
36

37
void loop() 
38
{
39

40
}
Guest #7035672
Rate this post
useful
not useful
Dogukan D. wrote:
> I urgently need solutions to these questions

Simply writing the answers for you does not make sense.

I imagine that you finish your time at the university this way and later 
program a piece of code in my next car that drives us directly to death.

No. If you cannot solve this simple work yourself within an hour, you 
should fail and either start over learning or leave the university.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now