Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

Witam może mi ktoś powiedziec dlaczego mam taki error i jak go naprawić?

AutoNotice.cpp:54: error: expected primary-expression before 'bool'
AutoNotice.cpp:54: error: expected `)' before 'bool'
AutoNotice.cpp:55: error: expected `)' before ';' token
AutoNotice.cpp:60: error: expected primary-expression before 'int'
AutoNotice.cpp:60: error: expected `)' before 'int'
AutoNotice.cpp:70: error: expected `)' before '}' token
AutoNotice.cpp:70: error: expected primary-expression before '}' token
AutoNotice.cpp:70: error: expected `;' before '}' token
AutoNotice.cpp: In member function 'void CAutoNotice::SpecialHourAnnoucement(int, int, int, int)':
AutoNotice.cpp:74: error: expected primary-expression before 'bool'
AutoNotice.cpp:74: error: expected `)' before 'bool'
AutoNotice.cpp:75: error: expected `)' before ';' token

 

Opublikowano

Masz napisane, rusz głową i wejdź na google

Opublikowano

Ja pierdolę, czytanie ze zrozumieniem to jest poziom 1 podstawówki. Dodaj brakujące znaczki, masz napisane co i gdzie masz wstawić.

Opublikowano
13 godzin temu, Marchewa™ napisał:

Daj kod tutaj :p w pastebin

albo nie :) rusz głową to się czegoś nauczysz kombinuj  tak jak ja kiedyś :D to są najprostsze błedy

To się nazywa znęcanie psychiczne :D

Opublikowano
4 godziny temu, Rimmero napisał:

Ja bym zrobił tak: https://pastebin.com/XdrUb4Gk

Powinno śmigać ale nie daje 100% bo tutaj znaczenie może mieć jak klasa AutoNoticeSettings jest zadeklarowana w nagłówku AutoNotice.h

Wiesz co już tak próbowałem, i niestety klops, ale i tak wgrałem kod poprawiony przez ciebie i dostałem taki error:
 

AutoNotice.cpp: In member function 'void CAutoNotice::HourlyAnnouncement(int, int)':
AutoNotice.cpp:54: error: 'AutoNoticeSettings' is not a class or namespace
AutoNotice.cpp:60: error: 'AutoNoticeSettings' is not a class or namespace
AutoNotice.cpp: In member function 'void CAutoNotice::SpecialHourAnnoucement(int, int, int, int)':
AutoNotice.cpp:72: error: 'AutoNoticeSettings' is not a class or namespace
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:107: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:109: warning: comparison between signed and unsigned integer expressions
AutoNotice.cpp:119: warning: comparison with string literal results in unspecified behaviour
AutoNotice.cpp: In member function 'void CAutoNotice::TimeIntervalAnnoucement(int, int, int, int)':
AutoNotice.cpp:130: error: expected primary-expression before 'bool'
AutoNotice.cpp:130: error: expected `)' before 'bool'
AutoNotice.cpp:131: error: expected `)' before ';' token
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:166: warning: deprecated conversion from string constant to 'char*'
AutoNotice.cpp:168: warning: comparison between signed and unsigned integer expressions
AutoNotice.cpp:178: warning: comparison with string literal results in unspecified behaviour



a tutaj AutoNotice.h:

https://pastebin.com/xzF7Uxin

 

 

dziękuję że się wypowiedziałeś

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...