Beginners (Page 8)

problem with my program's math
 
The math in my program is almost right. The problem is it doesn't find the cents when my if statemen...
[2 replies] Last: oh my gosh haha. Thanks apparently I am tired and missed that. (by asp1010)
by Kiryu
Storing many derived classes without pointers
 
I'm currently writing a Minecraft-like game (Actually cubeworld, but no one knows what that is). Of ...
[17 replies] Last: Sorry for the late answer, I kinda forgot about it because of frustrat... (by Kiryu)
Deleting pointer
 
Why do I get a random value here I deleted p. Also, why is compiler allowing p . I get it that p is...
[2 replies] Last: its generally considered a good plan to do this delete p; p = null;... (by jonnin)
by xxvms
Exercise :)
 
Hi there I am helping educational website with their C++, Website runs scoring system, where you...
[10 replies] Last: wow thanks JLBorges (by xxvms)
by ttimes
Need help with arrays and linear searches
 
I have an assignment due shortly and need some help. Here is the assignment information : For...
[3 replies] Last: > cout << numbers(index) << " "; > This code attempts to read exactl... (by ne555)
by DTM256
time.h vs Chrono
 
I've used #include<time.h>, but I've never seen #include<chrono> before and I played with time code ...
[5 replies] Last: And on that last note: http://en.cppreference.com/w/cpp/chrono/c/clock (by kemort)
Cannot get XLSX I O library example to compile
 
I am writing a program which involves the user populating an excel settings sheet. I then read it...
[4 replies] Last: thank you so much mbozzi!! (and apologies for a very late reply) this ... (by erixliechtenstein)
by Arcy
Copying a C-string into a new block of memory
 
Greetings, The exercise is about writing prototypes and definitions of the functions present in t...
[3 replies] Last: Thank you to both of you for your help. (by Arcy)
Pre and post increment
 
I know a built in type is not an object but I really want to understand how post and pre increment w...
[3 replies] Last: since the type of x is int, there is no function call: a built-in oper... (by Cubbi)
difference between pointer variable, pointer value, pointer address, variable address
 
sorry i post code in c!!! first code: void Push(struct node** headRef, int data) { struct node* n...
[4 replies] Last: @jonnin thanks for the explanation!!! So i can think that &head is a l... (by surfersss)
fin.fail
 
Hello, I am trying to read a file and take the average of the sum of grades and display the average....
[1 reply] : std::ios::fail() isn't really used for what you think it's used for,... (by xismn)
/MT causing unresolved externals.
 
So I am attempting to redistribute my program, yet I am met with 'Missing VCRUNTIME140.dll', but tha...
[3 replies] Last: Ah okay. I will try that thank you! Edit: All compiled correctly afte... (by ExSanity)
how to use cin.ignore
 
if the user types in a letter for id2 , the first getline will fall through (it will be empty), ...
[3 replies] Last: All read operations (including ignore) will fail automatically if an e... (by Peter87)
by darje
sort linked List
 
lets says i have 5 elements in the linked list 3->1->4->2->7; i want after calling sort method its ...
[2 replies] Last: hey Handy Thanks for the help mate i will try tomorow morning to work... (by darje)
by Ephan
Nested for loop and if conditional, to draw a pattern ??
 
Hi c++ lovers :) This code that contains nested for loops and if conditional made sense to me to h...
[4 replies] Last: Hi coder777. Both the codes you provided make things really clear an... (by Ephan)
how to reply
 
Write your question here.
[1 reply] : Hello somefight, Welcome to the forum. If you have not read these yet... (by Handy Andy)
.eof() confusion
 
Hi, I am having a bit of confusion understanding the full extent to which I can use the .eof() f...
[8 replies] Last: This is why I'm askingĀ  https://www.hackerrank.com/challenges/30-di... (by gunnerfunner)
What is the proper way of declaring the copy assignment?
 
I just took a class in c++ and one of the things we learned how to do was create classes, throughout...
[5 replies] Last: It means that it returns a const reference. That prevents you from do... (by dhayden)
by ChocoG
Calculate with pointers?
 
Hello, I want to create a little program... As first it should save the current Mouse position. The...
[3 replies] Last: What is the type of _calcPlayer and _calcEnemy ? What does the GetC... (by keskiverto)
by Ma92
struct
 
Aslam u alikum , this code has logical error , i declared two structures name st1 st2 i copy st1 to...
[2 replies] Last: thanks jib (by Ma92)
Pages: 1... 678910... 38
  Archived months: [apr2017]

Cannot post in this page. To post a new message, go to the first page.