Beginners - March 2015 (Page 26)

Case switch question .
 
Write your question here. Why is it that I can only input four letters in a case. it only allows case 'feb': example: case 'February': is a error any he...
[7 replies] Last: Most certainly welcome.. (by megatron 0)
Help implementing AI and Shadow in Maze Game
 
Hello, I need some help with the psuedocode for an AI in a Maze game. I have all the functionality for the player and a basic ghosts movement around the maz...
[2 replies] Last: The ghost must now ignore walls Based on the code we've been worki... (by AbstractionAnon)
Accessing vector of tupels element by position
 
Couldn't not find anything about it on the net, so I would like to ask how to access a specific element by its position in a vector of tuples. Let's say the Vec...
[1 reply] : std::get<1>(Vector ) (by MiiNiPaa)
compare one character with an array of characters
 
Q. How do I compare one character with an array of characters ??? for example I have an array of characters array ; or a string; now I want to compare a cha...
[6 replies] Last: Then you will need to setup loop and replace characters manually. (by MiiNiPaa)
string
 
hello.how to the first three charcters from char array into string array?
[2 replies] Last: Did you check the reference pages? Several ways to do it: 1) Use... (by AbstractionAnon)
function pointers
 
Hi all, is it possible to store a class member functions in a container like inside a map then call them on a particular instance of the class? Thanks in adv...
[12 replies] Last: i'll laugh at myself , av never heard of that , thanks for the insight... (by closed account SECMoG1T)
by thor36
Creating several instances of an object during program run
 
Greetings all I have a question regarding dynamically allocating new instances of objects during the program run. For example, in a game like GTA, depending on...
[13 replies] Last: Thor36 , the answer to your original question is that either (1) you ... (by dhayden)
by MRQ1
C++ knowledge required to start graphics programming
 
Hello everyone. I have been learning c++ for some time now. I am using two books c++ how to program and jumping into c++. I am doing it a little slowly because ...
[2 replies] Last: to learn SDL/SFML basic C++ knowledge of this site's tutorials are eno... (by anup30)
"return 1" in conditional statements
 
Hello. What does "return 1" do in conditional statements or (recursive) functions?
[2 replies] Last: "return 1" it basically depends on the context of usage for exampl... (by closed account SECMoG1T)
by VVS
if statement code
 
I have to write a program that asks the user to input length, width, and height and then the program determines whether it is a rectangle or a square and then ...
[1 reply] : Boolean And (&&). When you have two condition expressions, cond1 and ... (by keskiverto)
by naama
workspace
 
hi I need recomandation for a good c/c++ workspace. thanks for all halpers
[1 reply] : Ive been using Visual Studios 2013 for months now, and I really like i... (by TarikNeaj)
by VVS
fixing a messed up program
 
so my professor sent us a program with a bunch of mistakes that we have to fix and explain why. i understand most of it, but this part tripped me up //////////...
[1 reply] : que 1 why would we declare calPerimeter as a variable but then also d... (by MiiNiPaa)
Closing Program Problem
 
I am trying to write a program to search for a number in an array through binary search but when I build and run the code and the user enters the number after t...
[1 reply] : When you call search, you pass number to search for instead of size of... (by MiiNiPaa)
Pointer arithmetic problem
 
I'm stuck at pointer arithmetics. I'm looking to move to the value that "poly_pow" and modify it. But when I use the for loop to get there, I end up modifying s...
[6 replies] Last: Let that be a lesson to you. Pointer math is pretty much always the w... (by Disch)
Question from a student.
 
...
[2 replies] Last: @ats15 (Edit: thanks for at least trying. Sorry if I didn't explain my... (by CodeisHell)
system(string)
 
error C2664: 'system' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char...
[2 replies] Last: Thank you, (by Devilester)
by Torm04
Passing Pointers through various functions
 
Hello, in my assignment I am supposed to use pointers to pass the data throughout the different functions. I am having trouble in figuring out how to do the fun...
[no replies]
by prhray
error: expected ';' , ',' or ')' before 'int'
 
I keep getting this error message: "error: expected ';' , ',' or ')' before 'int' " for line 10: int assigned_door (int x int y) I can't figure out why. ...
[2 replies] Last: I figured out what happened. I missed "," between x and int. (by prhray)
by SAL89
Question about Shortest path of the king
 
I all, I need help for a problem. This is not homework. the question is from here: http://codeforces.com/problemset/problem/3/A I need the result to be like th...
[2 replies] Last: This is not homework. You try to learn by doing yourself. That is ... (by keskiverto)
Increment function help
 
I have just started learning c++, and I'm confused on one of my assignments. Write a void function called increment that will increase the value of the argumen...
[3 replies] Last: Thank you @androidguy1 and @Ganado it works now. (by husband and wife)
March 2015 Pages: 1... 2425262728... 51
  Archived months: [feb2015] [apr2015]

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