Beginners - May 2014 (Page 13)

forward_list
 
How would you write the following program using a forward_list vector<int> vi = {0,1,2,3,4,5,6,7,8,9}; auto iter = vi.begin(); while (iter != vi.end()) { ...
[4 replies] Last: oh alright, thank you for your help with this one and the other. :) (by closed account EwCjE3v7)
Sugestions For Beginners Project
 
Hello guys! Recently began using C + + and programming in general. Just thought I'd check with you knowledgeable guys on a challenging yet fairly basic project....
[7 replies] Last: You could try looking at this list of ideas: http://www.cplusplus.co... (by Codermik)
loop problem
 
Why does the following loop never exit? vector<int> vi = {1,2,3,4,5,6,7,8,9}; auto iter = vi.begin(); while (iter != vi.end()) { if (*iter % 2) {...
[3 replies] Last: Oh thank you all, so I would need to do iter += 2; to fix it. Thank ... (by closed account EwCjE3v7)
Word Wrap Function
 
Hi all, I wanted to practice my beginner skills with a little text game, but I want a word wrap function to format the text properly. I found this one that look...
[17 replies] Last: Looking at it now, there's still an error in the code. The <= on li... (by cire)
Matching array values
 
What is the best way to go through the 2 arrays to see what numbers match what. I understand that I can use a series of if/else if statements but that is gettin...
[7 replies] Last: Sorry, read through the question quite quickly. My mistake. (by benbalach)
What are lambdas really about?
 
I was reading the chapter on generic algorithms in C++ Primer 5th Edition, Lipman,Lajoie, Moo. I was just trying to get a general idea of what algorithms were a...
[6 replies] Last: @Computergeek01 - thanks for taking the time to post this reply. (by closed account z0My6Up4)
access reading and writing violation for no apparent reason.
 
okay so my program is about Little Alchemy. I have made the game actually. Four different classes. Earth, Water, Fire and Air. which combine to form more elemen...
[no replies]
by locolo
Function Crashing my program
 
why is the function crashing my program?? what would b the right way to do it?? char valid_letter_used (char letter_used , char letter_entered, int siz...
[1 reply] : This is what you have: char array = "abcd"; int i; if ( arr == 'X' ... (by keskiverto)
Compare 3D Points to get the vertical line between two points
 
Hi, I have some 3dPoints given and now I have to calculate the angel between every Point and the vertical. In the code below you can see my 3D Points which ...
[3 replies] Last: That doesn't answer the "angle of a point" question. Lets ignore that... (by keskiverto)
Help with *Creating Text*
 
Hello everyone, So I created a menu and now I am trying to add text to the main window but for some reason when I try to add text my menu code comes up with ...
[1 reply] : You might want to post this over at the Windows Programming forum. (by kong288)
by yepMe
Problem with socket programming
 
Hi all, I am trying to run a socket programming on qnx momentics on IDE 4.7 , the code was written by someone else , it is getting compiled on his pc i was j...
[1 reply] : You are actually trying to port Unix comms code to Windows. There's j... (by kbw)
Proper way to access Objects within objects?
 
I am attempting to access members of an object that I have created within another object but the proper syntax is eluding me. Or, perhaps the problem is how I a...
[7 replies] Last: Edit: there is no information about the kind of relationship, ¿why d... (by CodeGoggles)
Could someone check this code for me? I want to read a .dat file as a matrix and then print this matrix on screen.
 
with the following code, I want to read a .dat file as a matrix and then print this matrix on screen. But it just show 34343434343434 on my screen, my dat file...
[1 reply] : snum is short (~16bit) while fscanf(fp,"%d", requires int (~32 bit... (by coder777)
pass by reference with function prototype?
 
Write your question here. I am new with pointer, and i don't really understand how it works in function prototype, hen i do this in the function prototype and ...
[9 replies] Last: Thanks : ) (by eq1eq2eq3)
Any better draw square algorithms?
 
I am trying to create a square and in fact I did succeed, however I know there are other simple ways. My way seems a little off the chart and I am sure someone ...
[8 replies] Last: More stuff that's hard to do in a console, yet easy to do with a graph... (by Disch)
What does a pointer exactly pull to when you make it "null
 
When you make a pointer point to "null" making the head of the last element of a linked list point to "null", is that is that pointer actually pointing to? some...
[5 replies] Last: the pointer has to point to something No, that is the point of a nul... (by Lachlan Easton)
Comparing Strings help!
 
I have to write a palindrome program. The main issue I am running into is, if I input Race Car, it will say it is not a palindrome due to the issue of spacin...
[3 replies] Last: Yes, skip all spaces since they are not of importance when checking fo... (by closed account j3Rz8vqX)
Need help with code!!
 
Part 1 - Balanced Symbols Check (10 points) Determine and report whether an expression is balanced. { [ } ] is not balanced. [ ( ) ] is balanced and valid. ...
[2 replies] Last: could you help me with the code? (by claudilla)
by Twin
arrays issue
 
Im having a problem with this program that uses a multidimensional array. Everything works as expected except the minimum amount of food always spits out a mass...
[7 replies] Last: Provided (of course), that maximum was initialized to 0. And that ... (by CodeGoggles)
May 2014 Pages: 1... 1112131415... 55
  Archived months: [apr2014] [jun2014]

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