General C++ Programming (Page 14)

Need a lot of help with stack program
Hello guys, first of all, I'm sorry if my English is bad.. :D So, I'm going straight to the topic. ...
[6 replies] Last: the easy way out is to use this opportunity to learn about <vector> wh... (by jonnin)
by yurmom
can anyone explain the output for line e:
int fun(int x, int &y) { if (x < 0) y = -x; if (x <= 0) return 0; return x % 10 + 2 * fun(x/100, ...
[8 replies] Last: Is the extra logging not enough? It tells you exactly what values are ... (by Repeater)
Errors with data structures
Getting two errors. The first error is "error: use of undeclared identifier 'flights'. The second er...
[2 replies] Last: Thanks Peter87. It works now! (by waranthem)
by urko18
How save servos position in a SD card (1,2)
Hi to all of you! I'm doing the programming of a robotic arm (maybe some of you knows me because ...
[25 replies] Last: I understand what you want to tell me, but as I said I still have thin... (by urko18)
by tnrh1
Direct3d - Changing resolution ratio
Hello, I'm working on a pc game c++ source which is not written by me and I'm trying to display t...
[no replies]
by dorlow
How do I create a hello world c++ in Netbeans?
I'm running Netbeans on Linux Mint. I'm trying to figure out how to create a hello world in Netbean...
[3 replies] Last: Hi dorlow, This is just a guess from googling, but have you read: htt... (by Ganado)
by Agrito
Passing 2d arrays to functions
hey guys i need some help plz tell me how do i pass 2d array as parament to a function with user def...
[2 replies] Last: Thanks bro and ill be carefull next time i didnt knew since im new her... (by Agrito)
Why is the program giving me odd characters after Chinese characters?
Here's the problem, the program is used to reverse text while I am learning C++, and that is an exer...
[7 replies] Last: Do the non-reversed Chinese characters appear correctly? (by Peter87)
by sonkun
Reducing the complexity of an algorithm
Greetings everyone. I have this algortihm: int x ,n,j,k,i; int maxi=0; for (i=1; i<n; i++) for...
[3 replies] Last: There is a much better algorithm, N log N : https://www.geeksforgeeks.... (by tpb)
Sets and Maps, function wont compile.
Hello, I have to write code to create this function. /* set<Book> publishedBefore(int year); retu...
[2 replies] Last: Thank you Repeater, I was able to complete my assignment. Cheers (by agelakute)
dissecting a hamster(yes a coding question)
sorry I just tried to throw a little humour in the title, anyway I would love if someone could he...
[1 reply] : he tests for if (m_string) but m_string is not a boolean variable so ... (by tpb)
by stav
Changing project structures and incldues problem?
This isn't actually a problem im having it is just something i've been wondering about for a while. ...
[1 reply] : As long as a) there are no duplicate files in the project, and b) you ... (by helios)
vector subscript out of range
My code is building but every time I try to run it I get an error message telling me that the debug ...
[6 replies] Last: That was the problem. Thank you! (by rajekdelta)
C++ code access violation writing location during debugging
Hello fellow C/C++ programmers I have some code that I am currently debugging on VS2015 windows 8. ...
[1 reply] : Your code seems to have the very same problem as this program: /* ... (by keskiverto)
Binary Search
I am attempting to implement this binary search but it returns 11 and says 12 cannot be found. ...
[4 replies] Last: I am an idiot. i need to be checking the location. not the value. Than... (by d1g1talarts)
Expected Primary Expression Error | Assignment of Double Function
I am working on this problem for a class, and I am running into a lot of errors. I spent a good deal...
[3 replies] Last: Thank you guys so much! I also had a different error in my original co... (by coloure)
by Mathes
SFINEA and implicit type conversion
Hi, lately I started to dig deeper into templates and SFINEA. In my project I was able to use S...
[2 replies] Last: Hi Peter, you are absolutely right, it should be declval<T> instead... (by Mathes)
by ED201
can somebody help with programing arduino due
I have this code which samples analog input 1Msps and I want to put the data into declared array ins...
[2 replies] Last: this is what I though I would do something like writing to array I ca... (by ED201)
Help me, I'm not good at this stuff
Help, I'm fairly new to C++ and really having trouble understanding the whole thing. For this progra...
[6 replies] Last: You're welcome - hope it helped! (by MikeyBoy)
Manual bomb placement in minesweeper
Hi guys, I'm doing a bit of learning and I have been trying to figure out how to set bomb placements...
[2 replies] Last: Sorry, I'm quite the noob, could you put that into my code? I can't ev... (by sfxhewitt)
Pages: 1... 1213141516
  Archived months: [apr2018]

Cannot post in this page. To post a new message, go to the first page.