Beginners - March 2015 (Page 29)

by Bjord
Procedure entry point _ZST24__throw_out_of_range_fmtPKcz
 
I am trying to compile a bit of sample code (below) in Code::Blocks 13.12 with MinGW on Windows 7. When I attempt to compile and run, I get a popup window sayi...
[5 replies] Last: Are you linking to the correct versions of the SFML libs? There are st... (by LB)
shape
 
how can i do this shape if user enter 5 the output will be ........5 ......45 ....345 ..2345 12345
[6 replies] Last: It's more common with other kinds of input streams. In this case, havi... (by LB)
comparing float numbers
 
I'm having problem comparing floating point numbers. In the division math tutor program I created below, I'm not sure what to write to compare them correctly a...
[8 replies] Last: thank you, that worked. i still don't know how exactly it works but th... (by fermentingblob)
by Orval
Do damage help
 
In my classes, my damage script does not work. I think it might be because classes cant access other classes? I dont know, my book only had a 2 chapters over cl...
[no replies]
calculate mean from file
 
im having trouble calculating mean but i can't get access to the array please help #include<iostream> #include<fstream> #include<cstdlib> #incl...
[2 replies] Last: Furthermore, this looks like continuation of http://www.cplusplus.com/... (by keskiverto)
C++ Reset Leaderboards? Console App. How to? Help - Thanks
 
Hello. Got a quick easy console quiz show game application that I am stumbling on how to finish. Thank you for your time to help me with this. I began a C++ ...
[no replies]
by Ganado
Template evaluation with more than one template type
 
The following code is not ambiguous, #include <iostream> struct A { A() : m_parts(3) {}; int m_parts; }; struct B { B() : m_parts(4) {};...
[2 replies] Last: Thank you, I wasn't sure what to call it, I'll look more into the rule... (by Ganado)
whats the use of memory adresses ?
 
saw this in a code, and i have seen in many other complex algorithms uses of memory adresses , whats the use of them? for (n = 0; n <= 5; n++){ fprin...
[1 reply] : these are bitwise operations. check: stackoverflow.com/questions/40583... (by Aceix)
Do-While loop. Increment
 
Good afternoon ladies and gentlemen. I'm reviewing Loops from my textbook and a section review question asks what the output should be for the following code: ...
[3 replies] Last: Thank you dhayden and fr0zen1. I will look further in to it. I'm revie... (by Trac511)
understanding pointers
 
I have this code segment here. #include<iostream> using namespace std; int * foo(){ int a = 5; return &a; } void boo(){ int a = 7; } int main(){ int *...
[4 replies] Last: I tried comiling on linux and windows, in both cases it worked. As ... (by dhayden)
Which platform would be better for a begginer
 
Hi all. First off, I wanna appologize if I`m not in the right section. I`m facing a problem and I need some of you experience. I started ANSI C++ studies. My pr...
[5 replies] Last: Thank you verry much for you help guys. I think I`m gonna stick with v... (by mechanic90)
Printing Prime Numbers
 
Hi, I'm learning about structuring my program to produce prime numbers. I know there can be several various ways to do this, and I've looked at some, but ha...
[2 replies] Last: Thanks for the sound reasoning. Made my mistake pretty easy to catch,... (by project science)
Encryption Matrix Problem
 
Hello all, I have been assigned to make a program that takes a user inputted message and encrypts it from a 2d array of characters. The program needs to take ea...
[4 replies] Last: EDIT: Alright sorry last one, the decryption is working fine, but for... (by Squeakyduckquack)
Concatenating strings
 
Hello. What's the right way to add something (char or another string) at the beginning of a string?
[2 replies] Last: Thanks. (by mighty asker)
shape
 
how can i do this shape if user enter 5 the output will be ........5 ......45 ....345 ..2345 12345
[1 reply] : Please do not post more than once: http://www.cplusplus.com/forum/begi... (by LB)
99 Bottles of Beer starts at 74?
 
I was doing one of the practice problems but when i run the program and choose the 99 bottles of beer, it begins to count down from 74 rather than the 99. #...
[6 replies] Last: It is undefined behaviour, not an error Undefined behavior is allowed... (by MiiNiPaa)
file to array
 
im trying to use data from a file and turn it into an array but im stuck. the output is a just random numbers i need help the file contain 2 columns and 5 r...
[11 replies] Last: You made it worse, not better. Your code should look like this: while(... (by LB)
two text files and trees
 
Hello i need to make a program already have my trees but have couple questions. hoping someone can help. 1. what is a parser? 2. do i need two vectors sinc...
[no replies]
Coding Issue
 
I have been coding a program that works fine as long as I have everything with the .cpp file but when my professor wanted me to split the code into .ccp and .h ...
[5 replies] Last: Unless you intend to modify the parameters, there is no reason to have... (by LB)
by nergal
Creating beginner program
 
Hello all, I'm a new user and for 3 years, I've been doing some coding using a scripting language called Pawn for a game called Team Fortress 2. From those 3...
[no replies]
March 2015 Pages: 1... 2728293031... 51
  Archived months: [feb2015] [apr2015]

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