Beginners - June 2015 (Page 21)

Sting Vector not storing correctly
 
My problem is with what should be a fairly basic procedure, but is causing a huge holdup in my program. I have a vector of strings which holds the names of file...
[2 replies] Last: The vector is large enough, adding j++ and k++ after i++ now makes the... (by Feymanismyhero)
expected unqualified-id before ')' token
 
I managed to get rid of all errors I've had with this except for one. In line 42 error: expected unqualified-id before ')' token. I don't really program anythi...
[1 reply] : On line 8 you have: int SendKeyPress(unsigned short KeyCode, bool IsD... (by firedraco)
Need help with my beginner calculator code
 
Can someone please tell me why this shows some weird results? it compiles, but it doesn't do what it is supposed to, and I am really confused as to why. It is ...
[8 replies] Last: Instead of goto, use separate functions and just call the functions. (by Feymanismyhero)
by wrymn
2D C++ Box collision response
 
Hi, I am really big noob and I cannot really write this part of code. I need to write collision detection response on 2D box colliders(AABB), so no rotation inv...
[4 replies] Last: If you know it won't be null then use a reference. (by dhayden)
Calculator
 
I've managed to create a calculator that accepts different operators and any amount of numbers using arrays. However, it doesn't calculate the ( * and / ) befor...
[2 replies] Last: Nice Link (by AssignmentExpert)
Q about array length.
 
Hi, I am trying to make an array that forks for any sized array. So i tried that i start the code that the user get an input what is x, than that is assign to t...
[5 replies] Last: @shadowCODE Ty you for your answer and explanation. (by hohanyo)
by koopey
can't set up QT(GUI for c++)
 
i downloaded 5.4.2 version of QT but getting following errors when building a project. 10:23:24: Configuration is faulty. Check the Issues view for details....
[no replies]
class string initialize error !why ?
 
Write your question here. #include <iostream> #include <string> using namespace std; class dad{ public: const string public1("I am a bitch ...
[9 replies] Last: #include <iostream> #include <string> #include <functional> const st... (by JLBorges)
question and see what's wrong
 
Hello, I keep trying to do this after I type name and then click on enter. It keeps closing itself. Did I write any wrong codes? #include <iostream> us...
[13 replies] Last: I had to edit my message here since I finally solved the problem. The ... (by DCisthebest)
by Winsu
to keep variables private I need a passthrough
 
I have achieved to overload operator <<, I have found out that It can not be a member of the function if I want to overload <<, so at the moment I have had to m...
[6 replies] Last: That's true thank you!! (by Winsu)
Using inheritance with a payroll program
 
I am trying to get a payroll program to work with multiple classes and using inheritance. I have been able to compile and execute the file without any errors, b...
[2 replies] Last: If I run the program with this input: Dave s 40.2 18.4 Scottie h 44.3... (by dhayden)
Quick simple test for beginners
 
Heres a quick test if you wanna do it: Create an object to store information about a CD. The object should store this information: 1.The title of the CD 2....
[4 replies] Last: Post what you have done so far :) (by Codermik)
by omurad
Array initializing error
 
I know that the error that I'm getting has something to do with it only being compatible with C++11 but is there any way I could work around that by adjusting m...
[6 replies] Last: I'll check it out, thanks for the help and suggestions! (by omurad)
Inheritance and Access Specifiers
 
I have trouble understanding a certain thing about inheritance, even though I have already read the tutorial. Let's assume a class derives from a base class wit...
[11 replies] Last: Oops! I didn't notice there was no format! Sorry! I did expect you ... (by andywestken)
text files
 
Hello everyone. Suppose I have a text file for example a notepad file containing some input information. Now I need to use it. And I'm using a visual Studio 2...
[2 replies] Last: Thanks I'll check it right now. (by The suffocated)
Chessboard pattern
 
Hello. This is my task: https://judge.softuni.bg/Contests/Practice/DownloadResource/599 I've already made the spiral part. I need help with the loop for the c...
[12 replies] Last: #include <iostream> #include <string> #include <vector> using namespa... (by anup30)
How could one function influence the whole block non-executeable?
 
for(size_t i=0, I=C.size(); i<P.size(); ++i, ++I) { cout<<"P"<<i<<"0"; P .resetCoefficient(); cout<<"1"; P .calculateCoefficient(cli, ec);//uvl...
[4 replies] Last: @coder777 Oops. I saw the second comma, but not the first. ... (by AbstractionAnon)
by mutexe
create a class for which no object can be created?
 
yes, more specifically what access modifier in the class they are under.
[no replies]
by new1
comparing of each string in two lists
 
Here is the below, when comparing each element in list1 with list2 ,what is the better method for comparing each element in two lists other than begin and end s...
[4 replies] Last: The code as repaired by me does erase the string in both lists: line 5... (by andywestken)
by ferrad
Compilation error- function calling another function
 
Why do I get this and how do I fix it? a.cpp(12) : error C2064: term does not evaluate to a function taking 1 arguments static bool Security_Checked = ...
[3 replies] Last: I missed that, Line 8 is wrong. Remove it and add prototype. At lin... (by kbw)
June 2015 Pages: 1... 1920212223... 32
  Archived months: [may2015] [jul2015]

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