Beginners - August 2014 (Page 13)

Adding 4 numbers
 
Create a program that will accept 4 numbers. Get sum1 (sum of 1st and 2nd number) and sum2 (sum of 3rd and 4th number). Display both of the sums and which one i...
[2 replies] Last: hi i think this program will help #include "iostream" #include "conio... (by cpm14)
txt Files as a beginner
 
Solved
[10 replies] Last: The C++ part of you issue seems to be working fine now, there's someth... (by Ganado)
by Ch1156
SFML How to draw sprites to a grid(Non SFML Question)
 
In SFML I'm trying to draw sprites to a grid, but I want to draw them to the position I choose on the grid and I want them to snap to it, but I cant get it to d...
[14 replies] Last: I got it working!!! No I just need to figure out how to replace the te... (by Ch1156)
Quadratic formula code
 
Can someone explain to me what the top of this code does? It says if a==0 and if b==0 answer is -1, else answer is -c/b? What is the significance of this? If bo...
[2 replies] Last: This is somewhat wrong: if (a > 0) answer... (by helios)
question deMorgan's laws
 
One of states the following: not(A) and not(B) is equivalent to not(A or B). Write a program that outputs the equivalence above as a C++ expression usin...
[2 replies] Last: i am going to try (by passw0rd)
Why won't this compile?
 
I'm trying to write a basic code but I can't get it to compile, it's giving me "cout" errors. The code is below. // Example program #include <iostream> #i...
[5 replies] Last: Thank you I got it working. (by hellworld136)
Algorithm Library
 
I'm including the algorithm library in my program but am getting this crazy error when I try and compile on my school's server. proj4.cpp:272: error: expect...
[2 replies] Last: Methinks you are missing some semicolons (;) somewhere in your code. (by Duthomhas)
First time trying to make 10x10 Grid
 
I'm trying to make a 10x10 grid of 0's. I haven't gotten very far and already I've encountered a problem. In the second for loop, when I try to enter arrayy ...
[11 replies] Last: I had a hard time with arrays at first until one day they just stopped... (by admkrk)
by zazola
Subclass instanciate problems
 
I'm having some troubles to instanciate a subclass. The linker is giving me some errors of instanciate in my opinion. I have tried in many manners but I can't e...
[2 replies] Last: Where do I have to use it?? (by zazola)
Learn C++ code English? + Using void variables in main
 
Hello I have two questions and though it'd be unnecessary to make two threads. :) So, here they come. Question 1: Learning C++ code English ? I've ...
[9 replies] Last: ^Thanks worked! :) Thanks a lot. ;) Now searching answer for questi... (by Nielyboyken)
CAN SOMEBODY HELP WITH THISSS
 
Im using an online executor. compileonline.com to run my codes. Here is the problem. i put #include<conio> it says error so i removed it. problem solved.. i th...
[4 replies] Last: The extra braces in your case don't really do anything. But if you onl... (by giblit)
by vxk
Significance of nullptr
 
can anybody please tell me the significance of the origin of the name nullptr in c++11 because the same could be done before using 0 or NULL i.e. for example: ...
[8 replies] Last: @vxk, to make sense of your compiler's output, pipe it throgh c++filt ... (by Cubbi)
by thor36
Error when using _M_fill_initialize(static_cast<size_type>(__n), __value); in stl_vector.h
 
Greetings everyone. I am a beginner in C++ and I hope I am posting my question on the right board. I am testing out some code which is mostly comprised of 3r...
[2 replies] Last: Problem solved. my initializations of std::vector< std::vector<doub... (by thor36)
Any error in my coding?
 
Hello. I wanted to know whether there is any fault in the coding below. It is a simple and basic program to get the values of trigo. ratios. I have clearly stat...
[14 replies] Last: Yippeeeee!!!! I've got my program to work even when I enter '0' for an... (by Deepak Kadam)
Modifying element of info of a node in linked list
 
Hello everyone, How can i modify the info of a node in linked list? Example: A node contains studentName and studentID, I want to change the studentID. Ho...
[4 replies] Last: Traverse through the nodes with the linking pointer, whiles checking... (by comebackkid)
string::nsop when using namespace std?
 
Hello I'm trying to find a string into a string (ABCDEF, if A exists in string do something). I'm using the find function for that. But that function inc...
[2 replies] Last: Thanks! :) (by Nielyboyken)
Error while using member fucntion of class
 
So I'm trying to make an array of objects with the following codes class Student { public: Student (); Student (int, int); ...
[1 reply] : http://www.eelis.net/iso-c++/testcase.xhtml A testcase is said to repr... (by ne555)
Tic-Tac-Toe game.
 
Hi, I just need a little help. I am trying to make a Tic-Tac-Toe game, as you can see I am using a two-dimensional array, yet it only prints from 5 - 9 then say...
[3 replies] Last: Thanks, I'll include it now! (by JackMorrill)
by vxk
Question regarding polynomial class
 
I have several questions regarding the defined polynomial class: http://coliru.stacked-crooked.com/a/da265451b1dca81d 1) Is there a significant design cho...
[3 replies] Last: No. If you want a reference, do auto &x = y; See here for a good expl... (by dhayden)
by lays
double type I got 0.199999999 when I supposed it to be 0.2, how to resolve it?
 
when I am doing some calculation, the floating point become 0.19999999 which I need it to be 0.2. How to resolve it plz.
[3 replies] Last: If you really need that .0000000000000000000000000000001 then you migh... (by giblit)
August 2014 Pages: 1... 1112131415... 40
  Archived months: [jul2014] [sep2014]

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