Beginners - January 2016 (Page 18)

by vjanu
Decimal to Hexadecimal Question
 
#include <iostream> using namespace std; int main() { long dec,rem,i=1,sum=0; cout<<"Enter the decimal to be converted:"; cin>>dec;...
[1 reply] : #include <iostream> #include <string> int main() { const unsigne... (by JLBorges)
Writing to a File
 
Hello all, I am writing a subroutine to write data to a text file. The function, DisplayResults takes a structure which contains the results. All of th...
[2 replies] Last: what do you think this does ? data_file << endl; (by SamuelAdams)
by JoanT
Sorting book title alphabetically
 
I tried to sort the titles of the books by using a for loop and if-else statement to sort it alphabetically. However, I am facing some errors under the returnli...
[1 reply] : #include "Bookshelf.h" me may need to see that. vector <Book*> lis... (by ne555)
Where to now?
 
Hi need help... i have been programming on c++ for about a year now and i want to enhance my skills i live in GTA (Canada). Is there a college or university tha...
[1 reply] : I recommend inventing for yourself a project; e.g., write a game using... (by Zhuge)
Help
 
I have a constructor for a class, it needs to point to another class object, lets say in Class2. The testnode is a reference to a XML node. Im new and tryin...
[1 reply] : Simply instantiate your class. Test t1; pugi::xml_node testnode... (by AbstractionAnon)
Undefined reference to class::class
 
Hello all. I have a basic understanding of c++. I am doing some learning by following along on some of the classes on MIT OCW, particularly Computer Graphics. W...
[3 replies] Last: Thank you both. You're absolutely correct. When organizing my project ... (by HungryX2Hippo)
by alitt
adding funnction
 
hey guys i have a problem with this function answer is wrong #include <iostream> using namespace std; int add(int , int); int main(){ int ...
[10 replies] Last: thanks for answer (by alitt)
Understanding 2D Arrays
 
Alright guys. Here it goes. I just can't absorb the concepts of 2D arrays. Just don't know where I encounter a problem. Just 2D arrays as a whole. Can please ma...
[7 replies] Last: @JLBorges It is now as clear as a day! Thanks for all the energy you e... (by TheLoneWolf)
Snake Game
 
Hello there, I have made a snake game and there are no problems with my code. My problem is that I have to incorporate one or more structure(s) into my code. I'...
[2 replies] Last: Thank you for the help. (by RogueHunter1913)
Help with arguments.
 
Hello guys! Consider this code. #include <iostream> using namespace std; //I know not to use this //But to simplify things here, I will int add (int...
[8 replies] Last: @Jaybob66 Thanks for all your help! (by TheLoneWolf)
by Gector
Some sample code
 
Just two questions today. Could someone point me in the right direction to search for and delete certain files in a certain folder, say, desktop? (Using C++ ...
[3 replies] Last: One way to display all the files in a directory. #include <windows.h>... (by Thomas1965)
problem receiving output from user defined function
 
Hey all, I just started learning C++ about a week ago. The program is supposed to print a word equivalent whenever the user enters a number using a switch. Reg...
[7 replies] Last: Once we have learnt about arrays, it can be made even more succinct. ... (by JLBorges)
Need to Increment Length of Sorted Array
 
Hello, I am working on a Sorted Array Program. I need to be able to increment the length of the Sorted Array as I add items into the list. I tried doing this by...
[2 replies] Last: I solved it on my own. (by vkhanhvy)
Error running my work flow program
 
Write your question here. I have a few errors that I can't quite figure out. The catch is red lined also my bracket in the begining. Not sure why. Stared at my...
[7 replies] Last: I meant specifically inside of main, not nested functions. Sorry if th... (by TarikNeaj)
Can someone check my code?
 
Hello! I'm working on this assignment that wants us to write a program that assignment 40 random numbers between 50 and 100 to an array. We then have to print ...
[2 replies] Last: Line 28: You're using the same variable name for your loop variable a... (by AbstractionAnon)
Calling a static array from a dynamic memory
 
So I was making a programm with a class bingocard and a class player. Each player can have a maxium number od bingocards which you give it in the constructor of...
[4 replies] Last: I need this to work so I can check each number on the card for a bing... (by AbstractionAnon)
Smiley faces on char output
 
Hi, I recently started a Tris game, but the chars output are all smiley faces. What did I get wrong? The code is awful as it is now, it can be optimized much b...
[6 replies] Last: See previous post by TarikNeaj and cire Line 13: if(syf=0 "=" sh... (by Chervil)
copy constructor
 
what is difference between deep copy and swallow copy?
[3 replies] Last: @MikeyBoy: You beat me to it! Too funny! (by koothkeeper)
Infinite Loop
 
Below is a function to a program I am writing. The main program and everything else is not included due to the size of it, so I know some functions there will n...
[5 replies] Last: I think that x on line 35 should be a random int because if x = 1 the... (by MikeyBoy)
by Innoox
getline
 
Hello community Have 1 problem with getline #include "std_lib_facilities.h" #include <iostream> #include <string> #include "Test.h" using namespace s...
[5 replies] Last: Yeah my english is bad. Oh, nevermind, I just realize it's unimportant... (by Innoox)
January 2016 Pages: 1... 1617181920... 29
  Archived months: [dec2015] [feb2016]

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