Beginners - March 2015 (Page 14)

Converting decimal numbers to binary
 
Hello everybody. I've written a program which can convert decimal numbers to binary numbers. But I was wondering whether it's possible to modify this code to ac...
[2 replies] Last: You don't need to increment i at line 14 since you'll reset the value ... (by dhayden)
PLESE HELP Quartile wont work
 
Hello, I have pretty much figured out this assignment, however I cant get the last part to work. This is what it is supposed to do Calculate and write the...
[4 replies] Last: Thank you (by morgancassiday)
Bjarne Stroustrup's header files not working
 
Hi, i am having huge problem right now. I'm learning C++ from his book "Programming Principles and Practice Using C++" and now im at chapter 12. He uses his own...
[4 replies] Last: Hi i checked that on bigger projects when im using just FLTK library i... (by etrusks)
Numerical Integration for multiple rectangles
 
Hi, for my class I have to code a program which will find the integral of x^2 + 2 from 0 to 2 using the rectangle method for multiple rectangles n. I have to ou...
[6 replies] Last: Nope, I wrote it myself and have been able to change it. Thanks for yo... (by CodingNoob)
by Kman
Putting infile data into an array, inside a struct?
 
I'm getting confused here. I'm supposed to put what's in my infile (menuData) into an array called menu, which contains a struct called menuItemType. Here's...
[11 replies] Last: Just the question changes and the processing later. (by coder777)
by khofez
Tile Editor
 
I have searched and I dont found how I make a simple tile engine in c++ with SDL or whatever is, I just want a tutorial or a book or something else that have th...
[2 replies] Last: thank you ! (by khofez)
Building an array from a text file with a function
 
I am very new to C++ programming. I'm attempting to construct an array by inputting values from a text file and walking through it with a count. The text file i...
[2 replies] Last: Check line 11. Also line 34 is not correct. You can't do that. (by cbsestudent)
Distinguish between strings
 
How can I distinguish between the following strings? |^ + || + || and | || || The code I am trying to improve i...
[2 replies] Last: #include <iostream> #include <string> #include <regex> int main() { ... (by JLBorges)
Im an idiot bear with me
 
So I am new (as in week one of a class) to c++ and my assignment is to create a console application that prompts for the user to enter their name, then to enter...
[1 reply] : > my questions are: how to create the loop and limit it to 10 entries ... (by JLBorges)
Errors with For-loop
 
Hi guys. I am new to C++ and I have trouble finishing this assignment here is the assignment Your task is to find the person in the class who is most similar...
[6 replies] Last: when you use filestream, remember to close it. Why? Unless your goin... (by jlb)
Deleting nodes from a tree
 
I am trying to delete specific nodes from a tree that end in .net but I get an Error 1 error C2664: 'int remove(const char *)' : cannot convert argument 1 from ...
[10 replies] Last: I see exactly what the problem was and I rewrote a few lines and added... (by mtbrooks1993)
Display whole numbers if current value >= previous value
 
I need help with this program. I have to read and display whole numbers as long as the last input value is greater than or equal to the previous input value. (...
[2 replies] Last: Thanks for your help. I was able to figure it out and I got the progra... (by steezedq)
Arrays and Functions
 
I'm writing a code for my COSC class and I'm not sure how to fix this error. I haven't defined the playGame function but I don't believe that affects this error...
[1 reply] : void playGame(int& playersArray , int& numberOfPlayers, int& gameboar... (by fg109)
by bawer1
I need help, (Calculating statistics, Reading from a Text File)
 
Ok, I have worked on this for approximately 5 hours, and I have not received the output I wanted, not even close. The program is pretty simple, its not long at ...
[3 replies] Last: That makes more sense. Another problem, however, which i should have ... (by fg109)
My if statment isn't working (replacing 'char' using if))
 
It seems that my char replacement only works outside an if statement. But if I do that, I can't use an if statement. #include <iostream> using namespace st...
[2 replies] Last: Ah, I feel dumb. That was a really simple mistake that I have overlook... (by WowICantProgram)
Help with Abstact data type
 
I have written the code below to manage a DVD library. and array of 10 DVDs are created, with variables inputted from txt file. I have found a way to then pr...
[no replies]
How do I copy the codes into my computer to run them?
 
Hello. I just reading about C++. But I now found codes I would love to run. How do I copy and paste these codes to my computer to run them? Is it in the codes a...
[1 reply] : http://www.cplusplus.com/doc/tutorial/ Start with compilers (by JB252)
array size defined by file.
 
Is there a way to define an arrays size using a file? I have a file with 5 names and scores, I don't want to define a specific number to the array just in case ...
[2 replies] Last: thanks (by MshifterM)
by Lee125
different between push and pop.
 
Can anybody explain why in this tutorial the program for push and pop is same? I didnt know what is different about the pop and push. There no different in ...
[4 replies] Last: push puts an element in a vector.. pop removes the last element fr... (by shamieh)
Taylor 4th Order Code
 
I am having a problem with my code not generating the correct number. I think my problem lies in the way I am defining my functions. The answer I should be gett...
[no replies]
March 2015 Pages: 1... 1213141516... 51
  Archived months: [feb2015] [apr2015]

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