Beginners - February 2016 (Page 42)

by Sisten
Why choose the c++ language
 
Hi, why would i want to learn c++, what is it useful for? i've tried a bit, but i think the output is a bit wierd, ive got the book jumping into c++ but it does...
[8 replies] Last: C++ relies quite heavily on dynamic memory allocation Naive C++ (whe... (by Cubbi)
Why this simple pass/fail in exam program is giving error? (1,2)
 
I am trying to compile this program but compiler gives an error "else without a previous if". Why? #include <iostream> using namespace std; int main() { int...
[21 replies] Last: That question has been answered well over a million times, type it in ... (by TarikNeaj)
text-based online RPG game
 
Sooo. Hello again. I heard that making text-based RPG games with C++ is not the best choice but still can be done. My question is if I can make it online someho...
[5 replies] Last: Thank you for your replies. I decided to keep it offline for start. (by BlueOctopus)
I need help. Can someone explain to me a few lines of my teacher's code?
 
Hello guys I'm a beginner in C++ and I would like to ask for some help. Can someone explain to me the meaning of the lines 4 and 5. Also I would really apprec...
[4 replies] Last: your teacher is a maniac Or he's trying to test to what extent his s... (by MikeyBoy)
Project ideas
 
Hello everyone. I currently work in the systems administration field (Cisco/Linux) stuff like that. But it is really time for me to become a Jr. programmer ...
[4 replies] Last: but thats not something you cant learn as you go I agree with Tarik,... (by Jaybob66)
Memory Allocation
 
There is a lots of functions for memory allocation malloc,calloc,realloc etc. Why do we need to learn them? I mean memory allocation. Whats the use of it?
[4 replies] Last: Thanx everyone.. And I couldnt understanding by searching from google... (by abtahi tajwar)
by nanJIL
c++ basic coding
 
Hey guys! I am basically very new to this C++. Let me just jump into my silly questions, hoping to get answers. 1. why do we declare int size 2. void come...
[4 replies] Last: do it step by step, first: Write a complete C++ program that can rea... (by Jaybob66)
An online shopper program Problem
 
Hello, I have a problem here with this question. There are 2 parts to this question and I have solved the first part. Here is the question: Part A) An online ...
[4 replies] Last: You mean the assignment [...] you're right. Thanks. (by mido70)
Disabling / enabling a default parameter
 
I just don't get it. If I declare it in the .cpp, it works. If I remove the default parameter (changing it to just "bool sold"), it works. But this will not com...
[3 replies] Last: overloaded can only mean one thing, there is more than one of them and... (by Jaybob66)
Can someone explain to me why should we declare "new double" ?
 
Hello guys, I'm a beginner at c++ and in a few days I have an exam but there are some things I don't understand in the example cpp file that my teacher sent ...
[3 replies] Last: Ok, now I get it thank you guys. (by cskarche96)
Why is the bad_alloc exception not const?
 
Is there a special reason why the std::bad_alloc exception is not a constant? from cplusplus: include <iostream> // std::cout #include <new> ...
[5 replies] Last: Note that this has nothing to do with what we discussed earlier becau... (by keanedawg)
making a rhombus with just for loop
 
I have just started programming in C++, and in our class we started with for loops today, I was just trying to make a rhombus in cpp which will take an input of...
[2 replies] Last: have u checked the second last line ? (by Arghya139)
Callbacks
 
What is the use of callback exactly in C/C++ When I was learning API(glfw) there had been told about that many times.. What exactly it is?
[2 replies] Last: Thanx a lot (by abtahi tajwar)
Replace a character in a function
 
Ok so here's a question I got. I want to replace a single character in a string lets say it's '+'. The string is "five + five". How exactly should i do that? I ...
[2 replies] Last: // replaces the first '+' with '*' string swag = " five + five"; fo... (by Thomas1965)
How to apply what ive learned
 
I have been attempting to learn c++, but whenever i learn something it messes me up trying to apply what ive learned to a project. I was going to attempt Proje...
[2 replies] Last: I'm still learning, but basically here is what I'm doing. I'm writing... (by newatthis)
What does this code do?
 
I've got a teacher who... well.. He's a fun guy, but he isn't the greatest teacher in the world. He gives us homework assignments designed so that we will all c...
[1 reply] : See https://msdn.microsoft.com/en-us/library/x6aebccc.aspx (by JLBorges)
Filling HTTP form using C++
 
How do I go about making a program that fills an HTTP form and automatically submits it? I tried google but every result I see has used JavaScript. Isn't it pos...
[1 reply] : Very possible, I use cURL to submit forms myself. You just need to set... (by wizebin)
having trouble with a function
 
was wondering how do I output the numbers i just swapped in my function to the screen, its only outputting the first number imputed by the user for example if t...
[2 replies] Last: Ah i see, thanks mate (by willmannix1)
Reading a text file new line and adding a new line
 
Hello folks I am practicing some polymorphism and the goal of one of my sub-classes is to transform a text file and add a an extra empty line between lines. EX ...
[no replies]
I need help assigning input to each cout
 
I'm using the count to produce multiple messages "Integer #" depending what number the user inputs for the first cin. If the user inputs the number 4 it should ...
[1 reply] : Its fairly simple. You can use an array but the array must have a cons... (by Stalker)
February 2016 Pages: 1... 4041424344... 46
  Archived months: [jan2016] [mar2016]

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