Beginners - July 2014 (Page 24)

list of char*
 
Hello there, I was wondering how I could make a list of char* pointers to C-style character strings. I need to assign that to a vector of strings usi...
[5 replies] Last: Thank you guys, Got it And yes I will start using std::list when talk... (by closed account EwCjE3v7)
void function to merge two text files
 
Please see my code, it works fine by importing the merged two text files to a merged file. But am trying to use void function instead which is not working, I ha...
[4 replies] Last: Do you understand what rdbuf() does? It returns a pointer to the stre... (by AbstractionAnon)
2d arrays
 
Hi I am a beginner and I want to make a 2d array and when I type in the coordinates it shows me the values of the array but I just can't put the values of the a...
[4 replies] Last: Looks like trying to squeeze a quart into a pint pot. storing 12 value... (by Chervil)
header file
 
i have learn new c++ technique just now. and it is header file my question is what is the point of creating header file, is it making your program shorter?
[2 replies] Last: i see, that will help thank you. (by xenovia12)
Set prime number into array and print it out
 
Let user enter the size of matrix: (for example 3) and program will show like this: 2 3 5 7 11 13 17 21 23 #include <iostream> using namespace std;...
[2 replies] Last: Thanks for reading my topic and show me my correct :) but i not unders... (by lucifervt)
c++ question.. pleasee
 
QUESTION : Grading System Write a C++ program to determine the student who got the grades A, B, C, D or F from exam marks enter by the user. The distribution ...
[2 replies] Last: keskiverto is right but after all i want to do your home work still (d... (by xenovia12)
CreateProcessAsUser
 
Hi I am still new in c++ i am trying to open a pdf file using createProcessAsUser, but i do not know where to start.please help
[no replies]
by Mimic
Reproducing lua table in C/C++
 
As we know, the lua language derived from C. So the question I would ask is: can I create a structure like the lua table that can contain any data type (bool, i...
[3 replies] Last: http://www.boost.org/doc/libs/release/doc/html/any.html (by Duthomhas)
Moving onto sdl
 
How deep of an understanding of the basics of c++ is required before i move onto sdl? Do i have to master the basics or is just a basic understanding of the con...
[3 replies] Last: Yes, in C (SDL is implemented in C) structures can *only* contain fiel... (by troll warlord)
String Crossing Over to Another and Program Not Completing.
 
Hello! I wrote this small program that concatenates two strings with a space in the middle. It appeared to work fine at first and resembled something like the f...
[10 replies] Last: Thank you for explaining that to me! (by cplusone)
Expected Primary Expression before error.
 
I keep getting a expected primary expression on the lines with the player position function and the cin >> position. I have read that this is due to missing sem...
[2 replies] Last: Yes this is only part of the program. I have declared the variable "po... (by specter97)
by hxhx9
Java static functions in c++
 
Hello, I was curious as to how I would create some java-static methods and a field. I was led to believe that the correct way to accomplish this was namespaces....
[5 replies] Last: A function is not a class. It is what you would call in Java a static ... (by Duthomhas)
Need help with my level.
 
Hello all, I am just learning how to code. Trying to make a simple game where you are a box and trying to get to point A to point B. I also want to add a deat...
[2 replies] Last: Oh shit my bad. I guess I wasnt thinking haha. Its C# . My bad. Oka... (by Kadum1013)
Help! I am almost there but stuck with some problem.
 
I am writing a code which gets three coordinates for a triangle from a user and calculates its perimeter. I am pretty sure everything works but calling the func...
[4 replies] Last: Wow. Thanks, now I got it. So, I see why using namespace std; is not... (by maha349)
by omurad
Hangman syntax
 
Here are the functions for my hangman. I don't know if you'd like to run it for yourself but my variables aren't updating. For example after I input a guess, th...
[1 reply] : You set incorrectGuess to 0 at line 35. You then check the value of in... (by Yay295)
by fi50
Parentheses around pointers
 
Bit of a nooby question here but I was wondering what the parentheses around the pointer in the for loop mean/do. I understand that the * is dereferencing the i...
[5 replies] Last: Ah. Thank you very much, guys. (by fi50)
Declaring data types in loops
 
Take a moment to compare these two snips of code: int x; while(true) { } while(true) { int x; } When you declare x in the loop, is x created every l...
[3 replies] Last: Is it bad practice? This is one of the cases where you have to ma... (by AbstractionAnon)
Comparison of classes
 
I'm having a lot of trouble with writing a class function that compares two big integer arrays. Someone please help me. #include "HugeInteger.h" #incl...
[2 replies] Last: Some comments on your code: You might want to consider storing the... (by AbstractionAnon)
How to make a 3D main menu
 
How to start a 3d menu? I got the game stuff worked on but i need to know how to make the menu camera?
[1 reply] : A 3D menu? You would have to use some sort of game engine to do that, ... (by Jakee)
Infinite Loop of death
 
So im stuck in a loop and a hard place i have this code and when i accidentally input a letter instead of a number then the infinite loop of death wil scatter l...
[3 replies] Last: If you want a loop, then write a loop. Do not use goto . The conio... (by keskiverto)
July 2014 Pages: 1... 2223242526... 43
  Archived months: [jun2014] [aug2014]

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