Beginners - November 2013 (Page 12)

A few brief beginner's questions
 
1. It says that cout of this code is 1 0 1. But can I get an explanation why the program's cout is 1 0 1? int num = 45; cout<<( ((float) num/2) > (num/2)...
[3 replies] Last: These seem awfully homework-y, so excuse me for being a bit vague with... (by MrHutch)
by RabMac
Recursion... Help
 
Hi, I am having a number of issues with this program and was wondering if someone could please help. The first issue is that I am trying to write the outp...
[6 replies] Last: Cheers mate, I think I have got it now. The missing link was that each... (by RabMac)
by Adil01
Urgent .. I need help
 
Hello all.. i have just joined the forum and i would be quite happy to enhance my programming skills being an active member of this forum, but right now i am on...
[5 replies] Last: Ok here I wrote one of these programs for you, you get the point try ... (by ynooran)
by KamKan
help, position in c++
 
the second name let's me input and is showing properly. But, the items of the first customer is not showing up. what do i do now? Thanks! #include "stdafx.h...
[6 replies] Last: @chervil thanks, it works well now! :) (by KamKan)
Strange problem with sprintf()
 
Im writing a function to display binary tree in nice format, but something got wrong with the sprint() function. If I just comment out that sprint() line, the p...
[1 reply] : it's rather likely that you have a buffer overrun on line 2. This '*' ... (by coder777)
Codes
 
I need to get an input which takes a bunch of numbers you insert so like 294745 makes 2 footmen 9 archers 4 knights 7 ghosts 4 zombies 5 skeletons is there an...
[7 replies] Last: you can use a string like an array. The function size() (as shown ab... (by coder777)
error LNK2001: unresolved external symbol _mainCRTStartup?
 
Ok, so like I recently started learning C++ on my own. It said here about learning how to separate interface from implementation from the book so I did one of t...
[3 replies] Last: Your program doesn't actually do anything yet. You've defined your cl... (by tipaye)
keyboard presses
 
Hi I'm looking to write a text viewing console app in visual C++ 2010, but i'd like to know if there is anyone who would be able to tell me how I could write so...
[2 replies] Last: Thank you very much. This is pretty much what I need. I'll try to play... (by chilunliu)
by suraya
unhandled exception/linked list
 
hi guys, i am trying to implement a function insert in a hash table i have this class and am trying to create a linked list the code compiles however it does...
[2 replies] Last: thank you (by suraya)
by hilft
destructor question help!!
 
The out put of this is : ------- fatal 1 ------- Object constructed Object destructed fatal 2 ------- ...
[2 replies] Last: the destructor is called when the object goes out of scope. The scope ... (by coder777)
do while
 
For my code I am able to compile but when I run the program it goes through my code once and it will let me run the program again. it will display this but it ...
[1 reply] : int main() { char choice; do { cout << "\nThis menu. Continue? ... (by thesagaof)
Creating a Greeting Card
 
-create a ‘Happy Holidays’ ASCII art eCard and display it to either the stdOut or to a file. -The software shall read in the recipients name from the stdIn...
[2 replies] Last: -create a ‘Happy Holidays’ ASCII art eCard and display it to eith... (by merryflip)
by KamKan
Structure Programs.
 
Any recommendations of what program should i create? This is for our case study. It should have structures in it and functions and the likes of it. Thanks! Anyt...
[no replies]
Using function pointers in a scheduler class
 
Hello, I'm trying to write a simple game engine and I came to the point where I need to add some kind of timing mechanism. Most specifically, I'm trying to w...
[7 replies] Last: > I cannot use c++11 without drowning in linker errors. > I probably ... (by JLBorges)
Overloading the output operator for a BST
 
Hi guys, I'm trying to overload the output operator for a BST so it prints out in-order. I've been staring at this for a good hour and can't seem to find the r...
[no replies]
Can i just learn basic of c++ and start making games using cryengine 3 ?
 
Can i just learn basic of c++ and start making games using cryengine 3 ? What i mean is learn c++ basics in this site(i learnt basics already) and start learn...
[3 replies] Last: Thanks guys (by SaiF PUNK)
Looking for a good reference
 
I'm looking for a good c++ book, any suggestions?
[1 reply] : The book list maintained by StackOverflow is very good: http://stackov... (by Cubbi)
Lowest Common Multiple
 
Hi everyone, i am very much a beginner in c++, so please bear with me, i needed to create a code that states the lowest common multiple of several numbers. So i...
[2 replies] Last: Ah i get it. Sorry, thats what i get for blindly following examples. M... (by daniel101)
undefined reference error(Help)
 
I'm trying to find the total yearly rainfall it keeps giving me an undefined reference error. #include<iostream> #include<math.h> #include<conio.h> ...
[13 replies] Last: Thanks much appreciated (by Cariboss newb)
Question about program to accept homework scores into an array
 
Hello all, I've been working on a problem where I'm supposed to enter 5 types of scores for 10 students into 5 arrays. I think I'm making it way more complica...
[2 replies] Last: That's what I first thought would work but if you did it the way you s... (by newlearn33)
November 2013 Pages: 1... 1011121314... 80
  Archived months: [oct2013] [dec2013]

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