Beginners - November 2015 (Page 35)

Using files..on Macintosh?..
 
Alright soooooo we're on to using files in our programs..which is kinda hard to understand as they were not explained well to us AT ALL! Anyways, part two of th...
[2 replies] Last: Try change the big loop (from line 21) to: while ((in_stream >> next... (by liuyang)
by Edgy
error c2011 class type redefinition
 
I am new to the concept of using headers. When I try to delete any of my includes the program breaks even more, but says the class type is being defined more t...
[1 reply] : Please close this one off. Thks http://www.cplusplus.com/forum/general... (by closed account 48T7M4Gy)
date class HELP!!!
 
I'm trying to implement class to represent Date has : Attributes: - Day: int - Month: int - Year:int Methods: - Constructor Date(string date): takes string in f...
[3 replies] Last: make line 89 system("pause"); After a slight change to comment out ... (by closed account 48T7M4Gy)
Alternative to std::stod
 
Hi, After painstakingly coding this up I have been informed that std::stod from the <string> library won't work for this assignment as the default compiler a...
[6 replies] Last: Strangely enough we are able to use the boost library. I haven't looke... (by big leigh bowski)
99 bottles of beer on the wall, help..
 
Working on an assignment to allow a user to input the number of beers they have left on the wall, and the program will finish the lyrics. I've made it work, ho...
[1 reply] : just put an if statement around the cout bottles if (bottles != 1 )... (by Edgy)
New to coding, and don't fully understand this question.
 
I need help with this question, not fully sure how to do it. only new to C++. Write a program to display all the hour and minute values in a 24-hour clock f...
[3 replies] Last: Thanks for the info guys. (by AppleKidd)
C++ Without Fear.. (1,2)
 
Exercise 3.1.1 Use the for statment in a program that prints all the numbers from N1 to N2, where N1 and N2 are two numbers specified by the user. (Hint: You'l...
[20 replies] Last: Yep, you're done and so am I. ( You can use an if statement to check i... (by closed account 48T7M4Gy)
Sort problem
 
I am trying to sort an input file with 6 lines, each having a ID number, a first and last name, and a salary. There needs to be three outputs all depending on h...
[1 reply] : The last number being outputted is coming up as a 0. (by tomtom61695)
Linked List Nodes Copy Constructor
 
I've been experimenting trying to create three different stacks and do functions for those individually. The point is to use pointers and no stl containers. So...
[2 replies] Last: Ooh I mentally head desk. I am going to start from scratch, trying to ... (by Junishi)
Hello World
 
I thought that the hello world program was just a matter of typing "print hello world" which was so easy and now I just figured out that you are spose to have i...
[7 replies] Last: haha wow I look stupid im doing it wrong then...why cant I run it in m... (by Onecentt)
Error 1 error D8016: '/ZI' and '/clr' command-line options are incompatible
 
Hi, The current project which I am working on has the following error when I try to build it. Error 1 error D8016: '/ZI' and '/clr' command-line options ...
[5 replies] Last: I am only trying to use the System namespace. That means that you're... (by jlb)
by bartol
Makefile and secondexpansion
 
Hi. I am reading a tutorial about make and I saw some example and I don't understand it. Why this makefile is printing this: /tmp/foo/foo.c /tmp/bar/foo.c /tm...
[no replies]
Restaurant Billing Program
 
I am stuck on how to get this program to work properly. It has to use information from a .dat file to calculate the Subtotal, Tax, Tip, and Total amount needed ...
[no replies]
SQL Error Msg on Qt 5.5
 
After running the following code I keep getting the following error message: [ODBC Driver Manager] Data source name not found and no default driver specified ...
[no replies]
by Reysan
Copy each word to other array
 
Hello i have a problem. I need create a function whose split my char "Ala ma kota, a kot ma ale" and each save in other array, then copy all these words to one...
[no replies]
Function call error??
 
I am trying to write a program where it inputs information from a file, and then sorts the information based on ID, Name, and Salary. Currently I am stuck on th...
[3 replies] Last: Thank you, I changed the string data to Employee data and it worked j... (by tomtom61695)
Create a graph based from a char** array
 
How do i easily create a graph from an 2d char array. Each element in the 2d array should be one node, which contain its char value, and know its neighbors....
[no replies]
program code in c++ to print unicode urdu characters
 
I want help to have a program to print all urdu or any other language(xcept english) characters(unicode) on console screen in c++..deadly need help
[2 replies] Last: Depends on the console. If your console supports Unicode, as Linux con... (by Cubbi)
Random number generation question
 
Hi, I am trying to generate a random number from 0 - 10 And my function keep generating the same number everytime. I put a seed in the constructor of th...
[9 replies] Last: Thanks for all of the answers. This really helped me understand and so... (by PapaSmurf)
by Rytis
2d array
 
Hi ! I'm new to programing and I'm learning on my own so it's quite hard for me to do tasks without any examples . Can someone help me with a task ? There's an ...
[6 replies] Last: I was experimenting with the program and forgot to delete unused vari... (by Rytis)
November 2015 Pages: 1... 3334353637... 53
  Archived months: [oct2015] [dec2015]

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