Beginners - July 2013 (Page 31)

by akif13
Cannot get the correct output
 
Hello guys, I want to know why I still didn't get the correct output for number of tickets and total amount. Anyone can give me a hint? Thanks in advance Thi...
[4 replies] Last: You don't need to put total inside the class. It's fine as a local va... (by cire)
purpose of pointers
 
the one function using pointers, the other just returning. What is the purpose of using pointers here as return simplifies the syntax? #include <iostream> ...
[3 replies] Last: i ended up watching http://www.youtube.com/watch?v=Rxvv9krECNw which t... (by metulburr)
how to print in reverse using data structure
 
can somebody help me how to print in reverse the data in a structure. i tried to pass the 1st, 2nd and so on node on tempPtr to reach the end (NULL) but when i ...
[11 replies] Last: THANKS SMAC!! it really helps (by charmcaster2549)
The program ends automatically
 
Hello. Im new to programming. I need help because when i run this and type a name with 2 or more character it automatically ends. int main(int argc, cha...
[7 replies] Last: I used fgets() and this is the result: http://postimg.org/image/li1mu0... (by tugudenkz)
OpenGL
 
I have not programmed in C++ in almost a year(I was busy with C#), I have honestly forgotten allot about OpenGL, and all the technical terms it uses, and buffer...
[1 reply] : This guy does an amazing job of getting into the fundamentals of moder... (by Disch)
Basic question?
 
How do I turn my project into a program that you just double click and it runs automatically without the compiler(etc), my compiler I a using is CodeBlocks.
[6 replies] Last: Well I mean forcing them to download it from your program, that is not... (by Johnny111111111)
making a poll
 
this is the draft syntax #include <iostream> #include <string> using namespace std; int main () { cout << "THIS IS A SIM...
[11 replies] Last: thnx for the syntax.. i'll try to learn and understand that cuz im rea... (by xeimaster)
Can't get Recursion to reset
 
I am trying to write a recursion program that will count the # of digits in an integer - and for some reason when I try to repeat the process - it won't reset t...
[13 replies] Last: @ Smac89 Thank you! That makes so much sense! I really appreciate you... (by scthread)
Question: Detect Repeat Word Program
 
Hey all, I'm new here and excited to share ideas and learn from one another. I'm going through Stroustrup's book "Programming." I'm doing this on my own, ...
[2 replies] Last: Firedraco, Something so simple, but I was so blind to it without your... (by InclinedToFall)
How do I prevent this infinite loop?
 
Hello all, I am working on a project for class. Here is the code: #include <stdio.h> #include <ctype.h> void DisplayApps(char *appPtr); void SetC...
[2 replies] Last: Well, the issue here is that in DisplayApps(), the variable is a char... (by Ispil)
nested if, else if loop not working
 
I need to create a nested if, else if loop, but no matter what I do I can't seem to get it to work right, even though it seems like I'm doing exactly what the e...
[4 replies] Last: Thanks for the quick responses, guys. @Ispil's suggestion worked, and ... (by anarchyPanty)
How is a pointer to a struct stored in memory?
 
I'm trying to understand and learn linked lists, but I'm having trouble conceptualizing the concept of a pointer to a struct. I think maybe it would help if I ...
[1 reply] : 'top' is not pointing to 'link'. Since it is a 'node*' it will point t... (by maeriden)
how do I get data from obj 2 while in obj 1?
 
Hey all I Have 3 objects (Data, Effects, & Items) I call Data from my main program and populate. When Data is called it populate its members using th...
[13 replies] Last: and DataClass.h should have been #included in itemClass.cpp. Remembe... (by Dragonstar)
building i/o function to external file
 
hello everybody i'm wondering how to make a function to make data input/outup to an external file. i do know only the basics on fstream. i'm trying to make ...
[6 replies] Last: sure it does! i'll try it right now! :) thanks everybody! (by Stauricus)
by aggsyb
Sum float within a loop
 
Hey, I have been learning c++ for a few weeks now and i am writing code that opens text files in sequential order text1,text2,text3 ,stores a string from a sele...
[15 replies] Last: My bad, I didn't know they were do different files. Meh, I guess I'm n... (by closed account N36fSL3A)
display vector without looping it
 
I was looking to make a way to view the contents of a vector without looping the vector? Kind of like in Python, you can just print the list and display its con...
[3 replies] Last: well i guess i could just make a function to just loop it and print it... (by metulburr)
by opamp
Using multiple, overloaded operators at once?
 
Hello everybody, I'm currently learning C++ and I wanted to overload an operator for the following class, that should count the amount of a specific character ...
[2 replies] Last: I'm in two minds about this, but as it's on my mind: While it's possi... (by andywestken)
C++ Leaning Class
 
I found a C++ learning class online the videos are free to watch just sign up for the site https://www.udemy.com/cpp-short-and-sweet
[no replies]
by leo255
Using Class/Method to Find the Max Value of Array
 
I think I'm almost there...I wanted to create a class that had a member function that would be able to take into it's parameter any array of any length, and wou...
[15 replies] Last: There is no any need to define [operator<<]. Thanks, I've amended my... (by andywestken)
Reading from file
 
I'm trying to read float values from a text file into a two dimensional array while counting the entries in the x and y directions. What I've got at the moment ...
[1 reply] : Forgot my ampersands. I am not a very clever man. (by malenfant23)
July 2013 Pages: 1... 2930313233... 53
  Archived months: [jun2013] [aug2013]

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