General C++ Programming - April 2015 (Page 25)

[C++/SDL2] Collision Detection is off
 
Sup once more Everything starts getting hasty and now I've realised that the vertical collision detection of my platformer is totally messed up. The horizonata...
[5 replies] Last: If the direction does not matter, why do you have 2 different function... (by Gamer2015)
by yj1214
class object's function that has function.
 
Foo *myDevice = getDevice("hello"); Ham *myDriver = myDevice->getDriver(); ^above is what I want to do. below is how my classes and functions are...
[1 reply] : Your problem is that on line 13 you have to know the definition of Ham... (by keskiverto)
initializing array of char pointers
 
Im getting error from code thats in Deitels how to program c++. The program assignment is to change deal routine to deal hand. But the code in book that initi...
[4 replies] Last: Yeh sure, but he probably has to follow a university assignment, or ... (by Little Bobby Tables)
string help
 
hello lets say we have string x = "abcdefgh"; what i want to do is to remove letters for example i would like to make from this is just bcdefgh and then cdefgh...
[9 replies] Last: thanks SGH i already used replace and it works as i wanted to so its o... (by Tommy1998)
Help!!!!
 
Hello, I want my program to be like this: http://i61.tinypic.com/ogjjio.jpg so what should I add? or where should I add the space?! #include<iostream> using...
[3 replies] Last: Thank you for the solution! and sorry! Used the code tags! (by JojoCx3)
Dont know if I did it right
 
This is a variation of the program shown in Figure 6.12. The change from the original is noted below. Translate this C++ program to assembly language and upload...
[2 replies] Last: Oh I see thanks for teaching me that! (by Horcrux216)
Where are parameters of main() used (1,2)
 
I have heard people say that you can do the following int main(char a,int b) So my question is where and how these parameters are used?
[22 replies] Last: Thanxx everybody (by shadder)
libCURL library: Unresolved Externals
 
I am trying to use the libcurl library, and did all the necessary things I could think of: In the properties: (C/C++>General) Additional Include Directories: ...
[no replies]
by SaifN
time complexity
 
Hi, Can you help me figure out time complicity of this code: func(n) s←0; for i←n to n^3 do j←1; while j < i^2 do j←j×2; s←s+j−i; retu...
[1 reply] : Outer loop runs n 3 times. Each iteration of outer loop results in i ... (by Smac89)
Unused functions
 
Are unused functions (declared in h and defined in cpp) actually included in the final build?
[2 replies] Last: Okay that's what I thought because a final build for something I was w... (by cmajor28)
is it bad to copy out of other source code until I 'get it'?
 
I dont mean straight up steal the code completely, its just that even after reading books upon books of functions, examples, a lot is still 'not there' at least...
[6 replies] Last: Coding is basic, but if programming was all about writing code, we wou... (by Smac89)
Commercial programming
 
Hello. How do I know if I'm ready to search for a first job? What's the required knowledge? Could someone give me examples of real world projects? Actually, is ...
[2 replies] Last: At this point I am self learning (gaining skills in competitive coding... (by mighty asker)
Trying to use C++11
 
I've been trying to use the stoi (String to Integer) command, which is part of C++11, but I can't seem to get it to work. I've tried to compile in Dev-C++, Code...
[11 replies] Last: Use .c_str() instead of evil character arrays. (by LB)
fatal error C1075: end of file found before the left brace '{'!!!!
 
I really don't know what the problems occurs inside this coding. I do not have any idea what this error means. If anybody can help me I would be so grateful. ...
[2 replies] Last: You have a rather large number of errors in your code. Picking one of... (by cire)
by yj1214
Can you run .a in Windows?
 
I downloaded SDL2 library but I noticed that even though I downloaded Windows version, all my dll and lib files are in .a format. I thought .a formats are only ...
[8 replies] Last: Yes, you can use those .a files on Windows provided you're using MinGW... (by Avilius)
Circular Linked List
 
Is it possible for someone to draw me this code line by line? I tried drawing numerous amount of times but still cant seem to get it. Can you send me the pict...
[no replies]
by yj1214
if statement condition.
 
I've noticed that in many programming languages including C++, whenever you put a function as a condition for the if statement, it calls that function. bool ...
[8 replies] Last: Also, comparison operators for basic types are very different from fun... (by Albatross)
Need advice on Payroll program it does not complie
 
// This is the Error I receive when I attempt to compile it I don't // understand the error could someone help to just explain it to me // or point me in the r...
[10 replies] Last: I PM'd you. Whenever your free I would appreciate your help (by gamingYeah)
[C++/SDL2] Inheritance
 
Hi guys After taking a break for several weeks I have to hurry and hand in my work in a few days ^^. So if you could answer this one rather quickly I’d be t...
[5 replies] Last: Alright I've fixed it. The error wasn't in the code i posted before at... (by HalfNOoB)
Generating subets of limited cardinality and presence of an element required...
 
Hi, I have a set of 100 integers. For each one of these integers there is a subset N i that contains each i and 9 others integers. I need to generate all sub...
[3 replies] Last: > Ni that contains each i and 9 others integers so 2 9 subsets... (by ne555)
April 2015 Pages: 1... 232425262728
  Archived months: [mar2015] [may2015]

This is an archived page. To post a new message, go to the current page.