Beginners - November 2015 (Page 45)

Interesting problem
 
I was just practicing writing silly little programs to practice what little bit I know at this point, and have run into an interesting problem. When I run th...
[3 replies] Last: After looking at this again, I realize how unnecessary switch was when... (by cpq2g1zw2)
windows.h for mac?
 
Hello, I got an error message by including windows.h in xcode. Is there any other library that has same function as windows.h in xcode? Thank you for the...
[4 replies] Last: windows.h is the (c++) header file for all functions in the Windows AP... (by closed account 48T7M4Gy)
write a program that checks the validity of a date
 
Only the function to convert number of month to its name is working. Everything else gives me errors such as 0, 10, or 500 instead the day & year. #include <io...
[5 replies] Last: I changed what you said but if I enter something like 9 23 1993 it ju... (by coder777)
Printing out a list of objects from a custom list class.
 
I am having trouble figuring out how I print a list of objects from my custom list class. My List class is below. To insert the list inserts right before the cu...
[3 replies] Last: The problem is that currentItem() returns a copy of the item (what... (by coder777)
Passing pointers by refrence
 
Hello, I have tried to create a binary search tree and perform the basic insert and print functions of it. The code for it works all right and is given below. ...
[7 replies] Last: http://www.geeksforgeeks.org/when-do-we-pass-arguments-by-reference-or... (by closed account 48T7M4Gy)
Ich habe ein problem mit mein code.
 
Write your question here. GAUSS INVERSA:GAUSS INVERSA:GAUSS INVERSA:GAUSS INVERSA:GAUSS INVERSA:GAUSS IN...
[3 replies] Last: Can you translate to english? (by dshelves)
Doesnt work looking for the mistake
 
Write your question here. It is meant to work but something is missing Array1D< real > z(l.dim()); int i; int N=l.dim(); z ...
[1 reply] : It appears that most of the code is missing. It would also help if it ... (by Kevin C)
for loops
 
how can i make this function sum between specific arrays using a for loop? #include <iostream> //Basic input and output functionality for cout and cin ...
[1 reply] : Your current code is going to give you a TON of errors because of your... (by myrtlizer)
Matrix Help!
 
I am having trouble figuring out how I print a list of objects from my custom list class. My List class is below. To insert the list inserts right before the cu...
[2 replies] Last: I'm sorry but this is honestly way too cryptic for me to read. The var... (by binary3926)
by myazz
getLine and letter count problems
 
I am trying to do an assignment where my code will count a letter inputted from a sentence. The code now only examines the first word and not the entire sentenc...
[1 reply] : On line 13 of your program you use cin.getline(let); To find one ch... (by binary3926)
c2360 error in unfinished calculator
 
I'm getting 2 C2360 error's on line 53 and 2 more C2360 error's on line 76 , both saying that the initialization of 'x' and 'y' is skipped by 'case' label. I d...
[1 reply] : https://msdn.microsoft.com/en-us/library/61af7cx3.aspx You cannot jum... (by closed account 48T7M4Gy)
Need help figuring out a reversedigit program, super close to solution
 
Hello people, thank you for viewing. I am doing a homework assignment where the prompt the teacher has given us states "Write a function, reverseDigit, that tak...
[2 replies] Last: Your method will only work for small numbers less than 2147483647 forw... (by SamuelAdams)
Write a function
 
Write your question here. InGageX Mobile Communication Service provides their customers three different mobile plans in which customers can choose a package tha...
[no replies]
Best practices when reading from and to a file into a vector
 
I have a small console program that keeps track of a collection of different items ("entities"), allowing the user to view some listings of items, add items, mo...
[no replies]
by chops
Array to uppercase
 
HMMMM This looks like what I want, to change lower case to upper case. Could someone give me a hint as to where I am going wrong? It is in fact school work, ...
[8 replies] Last: YOU NAILED IT!!! This tinny little code was driving me crazy!!!! Tha... (by chops)
Function and loop assistance
 
Hello everyone, I am a first year programming student and I seem to be having a problem executing this C++ program. The instructions are as follows: Duri...
[4 replies] Last: @shiftleft: Firstly, We dont write code for people, we simply help t... (by Arslan7041)
Number of occurences of integers in an array
 
I have to write a program for a Lab exercise that counts the occurrence of integers in an array read from a text file. Here's the what my professor is asking fo...
[1 reply] : I will presume that you are not permitted to use a standard library hi... (by Duthomhas)
rounding down
 
How can I round down without declaring a value as an int? I tried setting the precision to 0 but it rounds to the nearest figure(ex 1.5 = 2 or 1.4 = 1) I want (...
[2 replies] Last: thank you! "floor" solved it (by nuglyfe)
Problem making Ascii converter loop
 
I made a simple Ascii converter for letters/symbols then numbers but, i want it to loop back around to the first line after. I've been searching everywhere and ...
[2 replies] Last: Thanks man ! (by jDurks619)
How to make string take in multiple words.
 
As of right now my code works with only one word not with a sentence. Thus I was wondering if there was some way to make my string continue take in letters/word...
[2 replies] Last: Cin.ignore();\\ used to ignore the spaces getline(cin,a); Sorry I woul... (by suppa)
November 2015 Pages: 1... 4344454647... 53
  Archived months: [oct2015] [dec2015]

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