Форум программистов, компьютерный форум, киберфорум
С++ для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 5.00/4: Рейтинг темы: голосов - 4, средняя оценка - 5.00
0 / 0 / 0
Регистрация: 10.03.2023
Сообщений: 2

Слишком мало аргументов в вызове функции

10.03.2023, 21:22. Показов 983. Ответов 9
Метки c++ (Все метки)

Студворк — интернет-сервис помощи студентам
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

struct Subscriber {
string name;
string phoneNumber;
string address;
};

vector<Subscriber> directory;

void addSubscriber() {
Subscriber newSubscriber;
cout << "Enter the name of the subscriber: ";
getline(cin, newSubscriber.name);
cout << "Enter the phone number: ";
getline(cin, newSubscriber.phoneNumber);
cout << "Enter the address (house number and street name): ";
getline(cin, newSubscriber.address);

// Check if the subscriber already exists in the directory
bool subscriberExists = false;
for (const auto& subscriber : directory) {
if (subscriber.name == newSubscriber.name) {
subscriberExists = true;
break;
}
}
if (subscriberExists) {
cout << "Subscriber already exists in the directory." << endl;
}
else {
directory.push_back(newSubscriber);
cout << "Subscriber added to the directory." << endl;
}
}

void updateSubscriber() {
string nameToUpdate;
cout << "Enter the name of the subscriber to update: ";
getline(cin, nameToUpdate);

// Find the subscriber in the directory
bool subscriberFound = false;
for (auto& subscriber : directory) {
if (subscriber.name == nameToUpdate) {
subscriberFound = true;
cout << "Enter the new phone number: ";
getline(cin, subscriber.phoneNumber);
cout << "Enter the new address (house number and street name): ";
getline(cin, subscriber.address);
cout << "Subscriber information updated." << endl;
break;
}
}
if (!subscriberFound) {
cout << "Subscriber not found in the directory." << endl;
}
}

void deleteSubscriber() {
string nameToDelete;
cout << "Enter the name of the subscriber to delete: ";
getline(cin, nameToDelete);

// Find the subscriber in the directory
bool subscriberFound = false;
for (auto it = directory.begin(); it != directory.end(); ++it) {
if (it->name == nameToDelete) {
subscriberFound = true;
cout << "Are you sure you want to delete " << it->name << " from the directory? (Y/N): ";
string confirmation;
getline(cin, confirmation);
if (confirmation == "Y" || confirmation == "y") {
directory.erase(it);
cout << "Subscriber deleted from the directory." << endl;
}
else {
cout << "Deletion canceled." << endl;
}
break;
}
}
if (!subscriberFound) {
cout << "Subscriber not found in the directory." << endl;
}
}

void displaySubscriber(const Subscriber& subscriber) {
cout << "Name: " << subscriber.name << endl;
cout << "Phone Number: " << subscriber.phoneNumber << endl;
cout << "Address: " << subscriber.address << endl;
cout << endl;
}

void displayDirectory() {
if (directory.empty()) {
cout << "Directory is empty." << endl;
}
else {
sort(directory.begin(), directory.end(), [](const Subscriber& s1, const Subscriber& s2) {
return s1.name < s2.name;
});

for (const auto& subscriber : directory) {
displaySubscriber(subscriber);
}
}
}

void searchByName() {
string nameToSearch;
cout << "Enter the name of the subscriber to search: ";
getline(cin, nameToSearch);
bool subscriberFound = false;
for (const auto& subscriber : directory) {
if (subscriber.name == nameToSearch) {
subscriberFound = true;
displaySubscriber(subscriber);
}
}
if (!subscriberFound) {
cout << "Subscriber not found in the directory." << endl;
}
}

void saveDirectory() {
ofstream outputFile("directory.txt");
if (outputFile.is_open()) {
for (const auto& subscriber : directory) {
outputFile << subscriber.name << "," << subscriber.phoneNumber << "," << subscriber.address << endl;
}
cout << "Directory saved to file." << endl;
}
else {
cout << "Failed to open file for writing." << endl;
}
outputFile.close();
}

void loadDirectory() {
ifstream inputFile("directory.txt");
if (inputFile.is_open()) {
directory.clear();
string line;
while (getline(inputFile, line)) {
Subscriber subscriber;
size_t commaIndex = line.find(",");
subscriber.name = line.substr(0, commaIndex);
line.erase(0, commaIndex + 1);
commaIndex = line.find(",");
subscriber.phoneNumber = line.substr(0, commaIndex);
line.erase(0, commaIndex + 1);
subscriber.address = line;
directory.push_back(subscriber);
}
cout << "Directory loaded from file." << endl;
}
else {
cout << "Failed to open file for reading." << endl;
}
inputFile.close();
}

int main() {
char choice;
do {
cout << "A - Add a subscriber" << endl;
cout << "U - Update a subscriber" << endl;
cout << "D - Delete a subscriber" << endl;
cout << "S - Search for a subscriber by name" << endl;
cout << "L - List all subscribers" << endl;
cout << "V - View subscriber card" << endl;
cout << "X - Save and exit" << endl;
cout << "Please enter your choice: ";
cin >> choice;
cin.ignore(); // Ignore the newline character left in the input buffer

switch (choice) {
case 'A':
case 'a':
addSubscriber();
break;
case 'U':
case 'u':
updateSubscriber();
break;
case 'D':
case 'd':
deleteSubscriber();
break;
case 'S':
case 's':
searchByName();
break;
case 'L':
case 'l':
displayDirectory();
break;
case 'V':
case 'v':
displaySubscriber();
break;
case 'X':
case 'x':
saveDirectory();
break;
default:
cout << "Invalid choice. Please try again." << endl;
break;
}
} while (choice != 'X' && choice != 'x');

return 0;
}

207 строка показывает не понимаю че делать
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
10.03.2023, 21:22
Ответы с готовыми решениями:

Слишком мало аргументов в вызове функции
#include &lt;iostream&gt; #include &lt;iomanip&gt; #include &lt;math.h&gt; #include &quot;Source.h&quot; #define N 3 using namespace std; double...

Слишком мало аргументов в вызове функции
Привет всем. Помогите чайнику найти ошибку в строке 19 указанную в заголовке #include &lt;iostream&gt; using namespace std; int...

Слишком мало аргументов в вызове функции
Всем привет, помогите найти ошибку в строке 66 #include &lt;iostream&gt; using namespace std; int F1(); //double F2(int, int); ...

9
Лежебока
 Аватар для Donkix
328 / 244 / 95
Регистрация: 12.05.2021
Сообщений: 1,429
Записей в блоге: 2
10.03.2023, 21:52
Цитата Сообщение от skijgg Посмотреть сообщение
207 строка показывает не понимаю че делать
Что-то не видно ее номеров, а считать до 207 както не охота...
Но так:
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
 
using namespace std;
 
struct Subscriber {
string name;
string phoneNumber;
string address;
};
 
vector<Subscriber> directory;
 
void addSubscriber() {
Subscriber newSubscriber;
cout << "Enter the name of the subscriber: ";
getline(cin, newSubscriber.name);
cout << "Enter the phone number: ";
getline(cin, newSubscriber.phoneNumber);
cout << "Enter the address (house number and street name): ";
getline(cin, newSubscriber.address);
 
// Check if the subscriber already exists in the directory
bool subscriberExists = false;
for (const auto& subscriber : directory) {
if (subscriber.name == newSubscriber.name) {
subscriberExists = true;
break;
}
}
if (subscriberExists) {
cout << "Subscriber already exists in the directory." << endl;
}
else {
directory.push_back(newSubscriber);
cout << "Subscriber added to the directory." << endl;
}
}
 
void updateSubscriber() {
string nameToUpdate;
cout << "Enter the name of the subscriber to update: ";
getline(cin, nameToUpdate);
 
// Find the subscriber in the directory
bool subscriberFound = false;
for (auto& subscriber : directory) {
if (subscriber.name == nameToUpdate) {
subscriberFound = true;
cout << "Enter the new phone number: ";
getline(cin, subscriber.phoneNumber);
cout << "Enter the new address (house number and street name): ";
getline(cin, subscriber.address);
cout << "Subscriber information updated." << endl;
break;
}
}
if (!subscriberFound) {
cout << "Subscriber not found in the directory." << endl;
}
}
 
void deleteSubscriber() {
string nameToDelete;
cout << "Enter the name of the subscriber to delete: ";
getline(cin, nameToDelete);
 
// Find the subscriber in the directory
bool subscriberFound = false;
for (auto it = directory.begin(); it != directory.end(); ++it) {
if (it->name == nameToDelete) {
subscriberFound = true;
cout << "Are you sure you want to delete " << it->name << " from the directory? (Y/N): ";
string confirmation;
getline(cin, confirmation);
if (confirmation == "Y" || confirmation == "y") {
directory.erase(it);
cout << "Subscriber deleted from the directory." << endl;
}
else {
cout << "Deletion canceled." << endl;
}
break;
}
}
if (!subscriberFound) {
cout << "Subscriber not found in the directory." << endl;
}
}
 
void displaySubscriber(const Subscriber& subscriber) {
cout << "Name: " << subscriber.name << endl;
cout << "Phone Number: " << subscriber.phoneNumber << endl;
cout << "Address: " << subscriber.address << endl;
cout << endl;
}
 
void displayDirectory() {
if (directory.empty()) {
cout << "Directory is empty." << endl;
}
else {
sort(directory.begin(), directory.end(), [](const Subscriber& s1, const Subscriber& s2) {
return s1.name < s2.name;
});
 
for (const auto& subscriber : directory) {
displaySubscriber(subscriber);
}
}
}
 
void searchByName() {
string nameToSearch;
cout << "Enter the name of the subscriber to search: ";
getline(cin, nameToSearch);
bool subscriberFound = false;
for (const auto& subscriber : directory) {
if (subscriber.name == nameToSearch) {
subscriberFound = true;
displaySubscriber(subscriber);
}
}
if (!subscriberFound) {
cout << "Subscriber not found in the directory." << endl;
}
}
 
void saveDirectory() {
ofstream outputFile("directory.txt");
if (outputFile.is_open()) {
for (const auto& subscriber : directory) {
outputFile << subscriber.name << "," << subscriber.phoneNumber << "," << subscriber.address << endl;
}
cout << "Directory saved to file." << endl;
}
else {
cout << "Failed to open file for writing." << endl;
}
outputFile.close();
}
 
void loadDirectory() {
ifstream inputFile("directory.txt");
if (inputFile.is_open()) {
directory.clear();
string line;
while (getline(inputFile, line)) {
Subscriber subscriber;
size_t commaIndex = line.find(",");
subscriber.name = line.substr(0, commaIndex);
line.erase(0, commaIndex + 1);
commaIndex = line.find(",");
subscriber.phoneNumber = line.substr(0, commaIndex);
line.erase(0, commaIndex + 1);
subscriber.address = line;
directory.push_back(subscriber);
}
cout << "Directory loaded from file." << endl;
}
else {
cout << "Failed to open file for reading." << endl;
}
inputFile.close();
}
 
int main() {
char choice;
do {
cout << "A - Add a subscriber" << endl;
cout << "U - Update a subscriber" << endl;
cout << "D - Delete a subscriber" << endl;
cout << "S - Search for a subscriber by name" << endl;
cout << "L - List all subscribers" << endl;
cout << "V - View subscriber card" << endl;
cout << "X - Save and exit" << endl;
cout << "Please enter your choice: ";
cin >> choice;
cin.ignore(); // Ignore the newline character left in the input buffer
 
switch (choice) {
case 'A':
case 'a':
addSubscriber();
break;
case 'U':
case 'u':
updateSubscriber();
break;
case 'D':
case 'd':
deleteSubscriber();
break;
case 'S':
case 's':
searchByName();
break;
case 'L':
case 'l':
displayDirectory();
break;
case 'V':
case 'v':
displaySubscriber();
break;
case 'X':
case 'x':
saveDirectory();
break;
default:
cout << "Invalid choice. Please try again." << endl;
break;
}
} while (choice != 'X' && choice != 'x');
 
ret
Куда приятнее чем у вас, не правда ли?

Имя функции и ее принимаемые параметры
Цитата Сообщение от Donkix Посмотреть сообщение
C++
1
void displaySubscriber(const Subscriber& subscriber)
Тем временем вы на 207 строке:
Цитата Сообщение от Donkix Посмотреть сообщение
C++
1
displaySubscriber();
0
 Аватар для SmallEvil
4086 / 2975 / 813
Регистрация: 29.06.2020
Сообщений: 11,000
10.03.2023, 21:55
Donkix, еще и отформатируй http://format.krzaq.cc/
и ошибку исправь
0
Вездепух
Эксперт CЭксперт С++
 Аватар для TheCalligrapher
12942 / 6809 / 1821
Регистрация: 18.10.2014
Сообщений: 17,234
10.03.2023, 22:04
Цитата Сообщение от skijgg Посмотреть сообщение
Слишком мало аргументов в вызове функции
Так и есть.

В чем ваш вопрос?
0
Лежебока
 Аватар для Donkix
328 / 244 / 95
Регистрация: 12.05.2021
Сообщений: 1,429
Записей в блоге: 2
10.03.2023, 22:30
Цитата Сообщение от SmallEvil Посмотреть сообщение
http://format.krzaq.cc/
А чё,так можно было...

Добавлено через 4 минуты
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
 
using namespace std;
 
struct Subscriber {
    string name;
    string phoneNumber;
    string address;
};
 
vector<Subscriber> directory;
 
void addSubscriber()
{
    Subscriber newSubscriber;
    cout << "Enter the name of the subscriber: ";
    getline(cin, newSubscriber.name);
    cout << "Enter the phone number: ";
    getline(cin, newSubscriber.phoneNumber);
    cout << "Enter the address (house number and street name): ";
    getline(cin, newSubscriber.address);
 
    // Check if the subscriber already exists in the directory
    bool subscriberExists = false;
    for (const auto& subscriber : directory) {
        if (subscriber.name == newSubscriber.name) {
            subscriberExists = true;
            break;
        }
    }
    if (subscriberExists) {
        cout << "Subscriber already exists in the directory." << endl;
    }
    else {
        directory.push_back(newSubscriber);
        cout << "Subscriber added to the directory." << endl;
    }
}
 
void updateSubscriber()
{
    string nameToUpdate;
    cout << "Enter the name of the subscriber to update: ";
    getline(cin, nameToUpdate);
 
    // Find the subscriber in the directory
    bool subscriberFound = false;
    for (auto& subscriber : directory) {
        if (subscriber.name == nameToUpdate) {
            subscriberFound = true;
            cout << "Enter the new phone number: ";
            getline(cin, subscriber.phoneNumber);
            cout << "Enter the new address (house number and street name): ";
            getline(cin, subscriber.address);
            cout << "Subscriber information updated." << endl;
            break;
        }
    }
    if (!subscriberFound) {
        cout << "Subscriber not found in the directory." << endl;
    }
}
 
void deleteSubscriber()
{
    string nameToDelete;
    cout << "Enter the name of the subscriber to delete: ";
    getline(cin, nameToDelete);
 
    // Find the subscriber in the directory
    bool subscriberFound = false;
    for (auto it = directory.begin(); it != directory.end(); ++it) {
        if (it->name == nameToDelete) {
            subscriberFound = true;
            cout << "Are you sure you want to delete " << it->name << " from the directory? (Y/N): ";
            string confirmation;
            getline(cin, confirmation);
            if (confirmation == "Y" || confirmation == "y") {
                directory.erase(it);
                cout << "Subscriber deleted from the directory." << endl;
            }
            else {
                cout << "Deletion canceled." << endl;
            }
            break;
        }
    }
    if (!subscriberFound) {
        cout << "Subscriber not found in the directory." << endl;
    }
}
 
void displaySubscriber(const Subscriber& subscriber)
{
    cout << "Name: " << subscriber.name << endl;
    cout << "Phone Number: " << subscriber.phoneNumber << endl;
    cout << "Address: " << subscriber.address << endl;
    cout << endl;
}
 
void displayDirectory()
{
    if (directory.empty()) {
        cout << "Directory is empty." << endl;
    }
    else {
        sort(directory.begin(), directory.end(), [](const Subscriber& s1, const Subscriber& s2) {
            return s1.name < s2.name;
        });
 
        for (const auto& subscriber : directory) {
            displaySubscriber(subscriber);
        }
    }
}
 
void searchByName()
{
    string nameToSearch;
    cout << "Enter the name of the subscriber to search: ";
    getline(cin, nameToSearch);
    bool subscriberFound = false;
    for (const auto& subscriber : directory) {
        if (subscriber.name == nameToSearch) {
            subscriberFound = true;
            displaySubscriber(subscriber);
        }
    }
    if (!subscriberFound) {
        cout << "Subscriber not found in the directory." << endl;
    }
}
 
void saveDirectory()
{
    ofstream outputFile("directory.txt");
    if (outputFile.is_open()) {
        for (const auto& subscriber : directory) {
            outputFile << subscriber.name << "," << subscriber.phoneNumber << "," << subscriber.address << endl;
        }
        cout << "Directory saved to file." << endl;
    }
    else {
        cout << "Failed to open file for writing." << endl;
    }
    outputFile.close();
}
 
void loadDirectory()
{
    ifstream inputFile("directory.txt");
    if (inputFile.is_open()) {
        directory.clear();
        string line;
        while (getline(inputFile, line)) {
            Subscriber subscriber;
            size_t commaIndex = line.find(",");
            subscriber.name = line.substr(0, commaIndex);
            line.erase(0, commaIndex + 1);
            commaIndex = line.find(",");
            subscriber.phoneNumber = line.substr(0, commaIndex);
            line.erase(0, commaIndex + 1);
            subscriber.address = line;
            directory.push_back(subscriber);
        }
        cout << "Directory loaded from file." << endl;
    }
    else {
        cout << "Failed to open file for reading." << endl;
    }
    inputFile.close();
}
 
int main()
{
    char choice;
    do {
        cout << "A - Add a subscriber" << endl;
        cout << "U - Update a subscriber" << endl;
        cout << "D - Delete a subscriber" << endl;
        cout << "S - Search for a subscriber by name" << endl;
        cout << "L - List all subscribers" << endl;
        cout << "V - View subscriber card" << endl;
        cout << "X - Save and exit" << endl;
        cout << "Please enter your choice: ";
        cin >> choice;
        cin.ignore(); // Ignore the newline character left in the input buffer
 
        switch (choice) {
        case 'A':
        case 'a':
            addSubscriber();
            break;
        case 'U':
        case 'u':
            updateSubscriber();
            break;
        case 'D':
        case 'd':
            deleteSubscriber();
            break;
        case 'S':
        case 's':
            searchByName();
            break;
        case 'L':
        case 'l':
            displayDirectory();
            break;
        case 'V':
        case 'v':
            displaySubscriber();
            break;
        case 'X':
        case 'x':
            saveDirectory();
            break;
        default:
            cout << "Invalid choice. Please try again." << endl;
            break;
        }
    } while (choice != 'X' && choice != 'x');
 
ret
Цитата Сообщение от SmallEvil Посмотреть сообщение
и ошибку исправь
В принципе, как вариант могу предложить такое:
C++
1
2
3
4
5
6
char choice;
struct Subscriber sbs;
//......
case 'v':
displaySubscriber(sbs);
break;
0
 Аватар для SmallEvil
4086 / 2975 / 813
Регистрация: 29.06.2020
Сообщений: 11,000
10.03.2023, 22:44
Цитата Сообщение от Donkix Посмотреть сообщение
В принципе, как вариант могу предложить такое:
У ТС уже есть контейнер с подписчиками.
C++
15
vector<Subscriber> directory;
0
Лежебока
 Аватар для Donkix
328 / 244 / 95
Регистрация: 12.05.2021
Сообщений: 1,429
Записей в блоге: 2
10.03.2023, 22:47
SmallEvil, а, тип вместо моих двух изменений надо было просто
C++
1
displaySubscriber(directory);
0
 Аватар для SmallEvil
4086 / 2975 / 813
Регистрация: 29.06.2020
Сообщений: 11,000
10.03.2023, 22:52
Цитата Сообщение от Donkix Посмотреть сообщение
тип вместо моих двух изменений надо было просто
Кто ж знает что нужно ТС ?
Карточку какого подписчика/абонента он хочет увидеть.
Наверное его спросить нужно.

Добавлено через 1 минуту
Цитата Сообщение от Donkix Посмотреть сообщение
displaySubscriber(directory);
не, уже есть такое :
void displayDirectory()

Добавлено через 53 секунды
C++
115
116
117
        for (const auto& subscriber : directory) {
            displaySubscriber(subscriber);
        }
И тут эта функция применяется по назначению.
0
Лежебока
 Аватар для Donkix
328 / 244 / 95
Регистрация: 12.05.2021
Сообщений: 1,429
Записей в блоге: 2
10.03.2023, 22:53
SmallEvil, тогда хочется увидеть решение текущей задачи с твоей точки зрения
0
 Аватар для SmallEvil
4086 / 2975 / 813
Регистрация: 29.06.2020
Сообщений: 11,000
10.03.2023, 23:02
Цитата Сообщение от Donkix Посмотреть сообщение
тогда хочется увидеть решение текущей задачи с твоей точки зрения
Я уже ответил :
Цитата Сообщение от SmallEvil Посмотреть сообщение
Кто ж знает что нужно ТС ?
Карточку какого подписчика/абонента он хочет увидеть.
Добавлено через 2 минуты
Если включить бабу Вангу :
- смотрим сколько "подписчиков" в "папке"
- спрашиваем п\н подписчика для показа.
- отображаем его
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
10.03.2023, 23:02
Помогаю со студенческими работами здесь

Слишком мало аргументов в вызове функции
#include &quot;stdafx.h&quot; #include &lt;math.h&gt; #include &lt;iostream&gt; #include &lt;conio.h&gt; int u, a, b, c, m, x, y, z, summ = 0; using...

Ошибка слишком мало аргументов в вызове функции
Здравствуйте помогите разобраться, компилятор выдает что в строке 140 407 и 418 слишком мало аргументов в вызове функции ...

Ошибка. Слишком мало аргументов в вызове функции
Помогите, пожалуйста, найти ошибку в строке 20 слишком мало аргументов в вызове функции pow: функция не принимает 1...

Слишком мало аргументов в функции
Привет Не могу понять каких &quot;аргументов&quot; не хватает? Выдает ошибку что в 23 строке - too few arguments to function 'double (double,...

Мало аргументов в вызове функции?
Вот вообщем то код, не могу разобраться, почему ругается компилятор. Рассчитываю на конкретную помощь. #include &lt;iostream&gt; ...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
10
Ответ Создать тему
Новые блоги и статьи
Как дизайн сайта влияет на конверсию: 7 решений, которые реально повышают заявки
Neotwalker 08.03.2026
Многие до сих пор воспринимают дизайн сайта как “красивую оболочку”. На практике всё иначе: дизайн напрямую влияет на то, оставит человек заявку или уйдёт через несколько секунд. Даже если у вас. . .
Модульная разработка через nuget packages
DevAlt 07.03.2026
Сложившийся в . Net-среде способ разработки чаще всего предполагает монорепозиторий в котором находятся все исходники. При создании нового решения, мы просто добавляем нужные проекты и имеем. . .
Модульный подход на примере F#
DevAlt 06.03.2026
В блоге дяди Боба наткнулся на такое определение: В этой книге («Подход, основанный на вариантах использования») Ивар утверждает, что архитектура программного обеспечения — это структуры,. . .
Управление камерой с помощью скрипта OrbitControls.js на Three.js: Вращение, зум и панорамирование
8Observer8 05.03.2026
Содержание блога Финальная демка в браузере работает на Desktop и мобильных браузерах. Итоговый код: orbit-controls-threejs-js. zip. Сканируйте QR-код на мобильном. Вращайте камеру одним пальцем,. . .
SDL3 для Web (WebAssembly): Синхронизация спрайтов SDL3 и тел Box2D
8Observer8 04.03.2026
Содержание блога Финальная демка в браузере. Итоговый код: finish-sync-physics-sprites-sdl3-c. zip На первой гифке отладочные линии отключены, а на второй включены:. . .
SDL3 для Web (WebAssembly): Идентификация объектов на Box2D v3 - использование userData и событий коллизий
8Observer8 02.03.2026
Содержание блога Финальная демка в браузере. Итоговый код: finish-collision-events-sdl3-c. zip Сканируйте QR-код на мобильном и вы увидите, что появится джойстик для управления главным героем. . . .
Реалии
Hrethgir 01.03.2026
Нет, я не закончил до сих пор симулятор. Эта задача сложнее. Не получилось уйти в плавсостав, но оно и к лучшему, возможно. Точнее получалось - но сварщиком в палубную команду, а это значит, в моём. . .
Ритм жизни
kumehtar 27.02.2026
Иногда приходится жить в ритме, где дел становится всё больше, а вовлечения в происходящее — всё меньше. Плотный график не даёт вниманию закрепиться ни на одном событии. Утро начинается с быстрых,. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru