Beginners - July 2013 (Page 25)

2D vectors
 
can i do something like this, like in arrays? thanks vector< <vector<int> > LN ={ ...
[3 replies] Last: @ donvigor I just did this, posted it here to save Cubbi some tim... (by TheIdeasMan)
Class member variables made public.
 
Ok, I've searched for the answer to this, and either I'm not asking right, or no one has asked yet. ...
[5 replies] Last: Having member variables private is a good idea, making them public or ... (by TheIdeasMan)
Help with programming assignment
 
I really wanted to know how to get my program to loop to it's beginning after each switch case execu...
[2 replies] Last: @TheIdeasMan, Preciate all the pointers! I'll have to read those refe... (by jakeford)
Prime Factorization
 
Dear All, I'm writing a program to factorize an integer into 2 factors only. for example, the prime...
[2 replies] Last: You'll have to prime factorize it completely, making sure your list of... (by Duthomhas)
Game Loop For Text-Based Adventure Game
 
Hey all, I am currently in the process of making a text-based adventure game and am looking for s...
[14 replies] Last: Thanks! You all are very helpful! (by phasstw)
counting and swapping numbers
 
Ok this is the end of a HW assignment in my c++ class. I included the pseudocode. The error i am hav...
[10 replies] Last: I played with it some more and here is the completed answer for anyone... (by hagfish88)
by xismn
Vector of Vectors - a silly goose is me
 
Consider the following programme: #include <windows.h> #include <vector> int main() { typedef un...
[6 replies] Last: Ah, I see. The following seems to have solved the aforementioned probl... (by xismn)
"No Appropriate Default Constructor Available" (1,2)
 
I have been working on this program for two days now and I can see the light at the end of the tunne...
[23 replies] Last: I am a bit dismayed that your instructor has given you this code. As ... (by TheIdeasMan)
Without "using namespace std;" How can the compiler locate namespace?
 
Please see the code in the following: ========================================================...
[14 replies] Last: Those aliases in the global namespace only occur in the C library, ... (by akluffy)
rfind Function
 
Correct me if I'm wrong but why does the rfind function display 8? Isn't 4 supposed to be displayed?...
[1 reply] : No, 8 is correct. It returns the position just like find() does (ie: ... (by Disch)
I have a couple questions?
 
If I wanted to check someones whole computer for a filer, how would I attempt that? What if I wa...
[no replies]
by etneri
Nested Loop Help
 
So, I'm trying to write a loop that will verify that a user has not entered "Q" initially, then I ne...
[2 replies] Last: Have a read of this : http://www.cplusplus.com/forum/beginner/104553... (by TheIdeasMan)
error compiling
 
I am very new to code and programming. I keep getting this error "'Servo' does not name a type". whe...
[4 replies] Last: its for an animatronic hand. its for an arduino. Its for the receiving... (by ldesimone)
switch with user input
 
i am supposed to use a switch statement to open 3 txt files. i have txt; txt1.txt txt2.t...
[3 replies] Last: Thanks guys (by hogwheeley)
by nmn
error meaning
 
[Pls ignored this post and refer to http://www.cplusplus.com/forum/beginner/106710/] Thanks Hi...
[4 replies] Last: I think it has something to do with the pointer I am using, just can't... (by nmn)
by bebarb
Compiler keeps saying "Local definitions are illegal"
 
Hello! Forgive something so remedial but I'm completely stuck. It keeps giving me the "Local def...
[5 replies] Last: edit: I'm not retarded I'm special. I should really pay attention to t... (by bebarb)
GLUT Question.
 
Why dose this just turn my cube black, it should be lighting it up with white and grey lights ...
[9 replies] Last: http://www.arcsynthesis.org/gltut/ (by Disch)
second program problem
 
hey this is a simple code but i keep getting the same error for line nine, not so sure how to fix i...
[5 replies] Last: endl (with an L) not end1 also moved the semicolon from the beginning ... (by metulburr)
Pointers to functions
 
I was reading the c++ tutorial on this site and made it to this part: #include <iostream> using n...
[1 reply] : In any case a parameter declared as a function is implicitly converted... (by vlad from moscow)
arrays versus vectors
 
In C++ Why would you use arrays at all when vectors can do the same and has more features, like v.si...
[2 replies] Last: Why would you use arrays at all when vectors can do the same and has ... (by Cubbi)
July 2013 Pages: 1... 2324252627... 53
  Archived months: [jun2013] [aug2013]

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