Beginners - August 2014 (Page 18)

by yj1214
python versions does not effect libraries, right?
 
Right now, i'm in frustration world because i'm wondering which python version to start learning. but let's say that i learned basic python language somehow....
[1 reply] : The version of Python effects the availability of libraries. Go for P... (by Atyab)
by Gansea
help with multiple strings
 
Gansea [#include <iostream> #include <string> using namespace std; int main() { string str1("Name:"); string str2("Course:"); string str3("Quote:"); st...
[2 replies] Last: sorry I got excited because I fixed it myself without any help (by Gansea)
RPG game (Arrays, Structs Message boxes) (Allegro 5)
 
To start with, I am making an RPG (rogue like more or less) and it is all made using the the console. I am wanting to work on remaking it using allegro. I know ...
[no replies]
Passing multiple arguments to function
 
I am working on a program that uses several 2d arrays and several functions to modify this data. It is a bit cumbersome to continually pass multiple arrays. All...
[2 replies] Last: Okay I feel its a little over my head at this point, but I will work w... (by JimmySiegel)
by Nison
Deleting characters from a string.
 
I want to remove '0' from a string but i don't know how to so. For example i have a string that says '0008' and i want to remove those '0' and just leave the '8...
[5 replies] Last: Your function now removes '0' characters at the beginning of the strin... (by dhayden)
by Nison
Use String in Switch
 
How does this work? I want to make a case in which the character A is given. #include <iostream> #include <string> using namespace std; int main() { ...
[5 replies] Last: And you may need to put each case block in the switch within { } so t... (by dhayden)
Sorting a vector problem
 
Can´t sort array in ascending order of age in vector // Bubblesort.cpp : Defines the entry point for the console application. // #include <iostream> ...
[3 replies] Last: The name and age are public, so you wouldn't really need to send them ... (by wildblue)
std::vector operator[] problem
 
Hi! I'm getting this error and I don't understand why. I hope you can help me. Matrix3f.h #ifndef MATRIX3F_H #define MATRIX3F_H #include <vector> class ...
[6 replies] Last: The vector is already defined. You would have to use the resize method... (by Cody0023)
Currency For A Game
 
Hey guys, I am trying to learn C++, I am at the point where I think I could try to make an RPG . This is probably a super easy question for all of you to answe...
[9 replies] Last: Alright thanks, you have been very helpfull guys. Problem solved (by MasterGeek)
Trying to get back into c++, code is working right but math is wrong somewhere
 
So i'm trying to get back into programming by solving Project Euler problems. For problem 2 i'm getting the correct sequence but the math isn't adding up. here'...
[3 replies] Last: Did you mean to be accumulating a total into the sum variable here i... (by wildblue)
Help with debugging practice problem
 
So i just started learning c++ this week, and one of the practice problems, from jumping into c++, is to design a program that finds all numbers from 1 to 1000 ...
[3 replies] Last: Thanks for the help and advice. I think I will take a break from probl... (by balec1026)
by yj1214
Questions about libraries.
 
I know that if I want to make games in c++ i have to use some libraries. so does libraries written in c++? and header file is where you bring libraries ...
[1 reply] : There are two answers to your question. 1) If you're referring to ... (by AbstractionAnon)
by mehak
Bit fields
 
the following code compiles however the c version of it gives a compilation error C:\Users\Mehak\Desktop\prac\Untitled2.c||In function 'main':| C:\Users\Mehak\...
[2 replies] Last: the following code compiles however the c version of it gives a compi... (by Cubbi)
constexpr
 
I've been learning about constants and I can't really get the key difference between const and constexpr. It said something about "evaluated at compile time" bu...
[1 reply] : const 's primary function is to express the idea that an object is... (by JLBorges)
Can´t print bubblesort values
 
It refuses to give an ouput, can anyone help? // Bubblesort.cpp : Defines the entry point for the console application. // #include <iostream> #include "...
[4 replies] Last: You have been asked to use code tags. PLEASE DO SO. http://www.cpl... (by AbstractionAnon)
by mehak
structure
 
the following code gives a compilation error #include<stdio.h> int main() { struct emp { char name ; int age; fl...
[2 replies] Last: There is no question in your post. If your question is "why am I ... (by AbstractionAnon)
From void back to main (How)?
 
Hello I've got an a pretty annoying problem. I have one main function, and a lot of void functions. Those void functions are called from the main. But how ...
[8 replies] Last: Indeed! While loops are the solution! :D This is what I did: bool ba... (by Nielyboyken)
by mehak
union
 
why does union a z2 = {0, 2}; give error ? #include<stdio.h> int main() { union a { int i; char ch ; }; union ...
[1 reply] : dot operator should be used to initialise z2,that is, a.ch =0 and a.ch... (by mehak)
Passing a string into a function as argument
 
Why can't I pass the string str to the function? What will be the correction? #include <iostream> #include <string> #include <cstring> using names...
[2 replies] Last: You're intermixing C-strings and C++ std::string. You've declared th... (by AbstractionAnon)
push_back on vector<class> ???
 
Is it possible to use push_back to create instances of a class in a vector, in the same way as you would with a vector<int>? The following code does not work...
[3 replies] Last: Thanks a lot guys. (by slouchcouchgamer)
August 2014 Pages: 1... 1617181920... 40
  Archived months: [jul2014] [sep2014]

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