Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged C++

0 votes
190 views
1 answer
    When I enter start then the program outputs the else function even though I fulfilled the criteria, I have tried with && ... . "; } return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
502 views
1 answer
    I have just compiled this code: http://www.win32developer.com/tutorial/winsock/winsock_tutorial_2.shtm I have added ... is running like mad! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
205 views
1 answer
    I have to create simple List implementation. They guy who wants that put struct before member next of class Node. Why ... Node *first, *last; }; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
252 views
1 answer
    This is a rather simple problem but is pretty confusing. string R = "hhhh" ; cout<< sizeof( R )<<endl; ... Should I use char array instead ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
184 views
1 answer
    I am checking on Celero git repository the meaning of DoNotOptimizeAway. But I still don't get it. Could ... canceled out in the comparisons. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
245 views
1 answer
    #include<cuda_runtime.h> #include<stdio.h> #include<cuda.h> #include<stdlib.h> __global__ void setVal(char **c ... Any help will be appreciated See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
366 views
1 answer
    #include <iostream> #include <string> using namespace std; int main () { string str; int age; cout << "Please ... is better use for int input ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
199 views
1 answer
    it would be kind of someone to help with the issue: i have a function within a class class A { void fcn1( ... be kind of someone to help. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
267 views
1 answer
    Object::connect: No such signal RollsRoyceTab::signal_aValueChange(int aValue) ?????? I have class RollsRoyceTab ... (int aValue)) ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
250 views
1 answer
    I followed the ways mentioned in Link object file to my project Eclipse CDR My main function is in cpp code and ... " to that c-function name See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
278 views
1 answer
    I am experimenting with memory allocation and deletion and had a question about how to properly delete/free memory. ... delete[] is called? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
260 views
1 answer
    int main() { int* i = new int(1); i++; *i=1; delete i; } Here is my logic: I increment ... and delete the pointer, my program crashes. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
459 views
1 answer
    I recently tried to create a global header file which would have all definitions of error codes (i.e. NO_ERROR, ... .obj Am I missing something? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
429 views
1 answer
    I have several processes that try to read and write the same file. I want each of them to lock the file so ... code). What am I doing wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
670 views
1 answer
    I was experimenting with C++17 feature std::optional The optional return type is std::optional<std::pair<int, int> ... not with "operator ?" ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
437 views
1 answer
    I am having trouble opening the test15.bmp. When I run the program it tries to open a window but crashes. The problem ... cin.get(); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
187 views
1 answer
    I am finding a Ubuntu OS command, which lets the program to read the data from keyboard even if the ... a beginner of Ubuntu programming. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
358 views
1 answer
    I have written a simple code: #include <iostream> using namespace std; int main() { int a, b; while (cin ... is it evaluating true and false? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
467 views
1 answer
    Also stoi and exit(0) are both out of scope in stk.cpp and I don't know why. Here is main.cpp #include ... me, assume all brackets are correct. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
360 views
1 answer
    I don't understand why this is causing my program to crash!? when i compile it makes it to then end of ... =tempPixel ; delete[] tempPixel; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
141 views
1 answer
    For any algorithmic problem, an error of 10-6 is allowed. I declared a long double as a variable in my first ... format specifier from f to lf. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
216 views
1 answer
    I'm using floats for these operations: Which of these two is more precise? (a * b) / c or (a / c) * ... so, which should I choose in what cases? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
479 views
1 answer
    I am using gcc/g++ on fedora 116, and my idea is: c program -> load c++ dynamic library A -> ... void *dl_ic = dlopen(ic_lib_path, RTLD_LAZY); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
141 views
1 answer
    I'm working with a particle simulation library. The way interactions are added to particles it through the following library ... ; } return 1; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
361 views
1 answer
    I'm trying to create a .dll with Visual Studios 2013. The project includes libpq functionality. Per other ... I still receive these errors. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
267 views
1 answer
    So from my understanding pointer variables point to an address. So, how is the following code valid in C++? char* b ... int *c= 1; //invalid See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
402 views
1 answer
    I am doing 64 bit migration and i need to port inline assembly code to cpp Here is he code void ... am new to assembly coding. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
284 views
1 answer
    What does the & mean in the following? class Something { public: int m_nValue; const int& GetValue() const { ... This code is taken from here. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...