Beginners - October 2014 (Page 42)

where's the text file output in Xcode?
 
I am a c++ beginner. I am using Xcode for c++ programming. However i can't see the file being created on the desktop.(btw i have changed the working directory ...
[1 reply] : I found the problem. The following code was to be written after the co... (by omkarborkar95)
by Ch1156
Planning large programs
 
I was wondering what is the best way to plan out large applications. I use Design Documents as of now but that does not seem to help enough. I heard that using ...
[9 replies] Last: Alright i'll give them a look, thank you. (by Ch1156)
Segmentation Fault
 
As is evident I am new to c++ programming. But reading about the segmentation fault atleast I know it might occur due to accessing array element out of it's siz...
[1 reply] : I figured out the problem. My hash function was giving a negative val... (by dexter19)
by Myna
Write a program that make you guess the correct number that is generated randomly
 
Write the program that generates a random number between 1 and 100 and asks the user to guess what the number is. If the user’s guess is higher than the rand...
[1 reply] : *cough* http://www.cplusplus.com/reference/cstdlib/rand/?kw=rand *coug... (by poteto)
Collatz Conjecture
 
Ok so here's what I've been tasked with...... "Possibly the most notorious algorithm termination puzzle of all time - among mathematicians anyways - is the C...
[11 replies] Last: All you have to do now is see how your last piece of genius programmin... (by closed account 48T7M4Gy)
by Myna
Calculate how much calories you burn
 
Running on a particular treadmill you burn 3.9 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20,...
[4 replies] Last: I am learning about the "loop" and it really hard. So that is how you ... (by Myna)
by Ganado
Public access of std::vector or other big type
 
Couldn't really find any exact answer on google. If I have a class like this class A { public: std::vector<int> v; }; Then I do A my_a;...
[3 replies] Last: Just want to be sure you meant that making the vector public is just ... (by cire)
by RotciV
Why does it say my "to_string" was not declared in this scope?
 
Error on line 20, 36, 44, 52, 68, 76, 82 string polynomials::toString() { string temp; if (polyVect.size()==0) { ...
[2 replies] Last: Try changing to_string to std::to_string ... (by Alrededor)
Having trouble reading from a text file
 
I need to read this from a textfile, and display all of them in the cout order. a222.5 10000.00 329238390 Matthew Charles Mullenweg g3999 59.99 32...
[2 replies] Last: Hey so I'm able to get the line now, but how would I get the line that... (by vextria)
I am having trouble with reading from a vector of strings
 
Here is my issue, the program will allow me to input new names and i can search for them just fine but it will NOT allow me to search for IDs that I input , ho...
[2 replies] Last: I've tried going through it with F11 step into and F10 step over watch... (by Sawrana)
[SFML 2D Game] Cannot understand why sprite isn't drawing
 
Hey everyone, I am in the process of making physics. I haven't done this before and hopefully all will turn out well. But before I get into that I need to get t...
[1 reply] : Figured it out, in the header file my constructor specified the sprite... (by MiddaPhofidda)
Dont know what to do...
 
Is there a way to test how much c++ you know and then tell you what you need to learn about next? I am currently stumped and not sure what I need to learn about...
[4 replies] Last: You should also read the tutorials on this site and learncpp. http://w... (by giblit)
ControlService
 
I'm trying to pause a service then resume. Couldn't make it kept geting erros
[4 replies] Last: No I'm trying to pause and resume a service in c++ (by closed account z67Ly60M)
Problem with Srand.
 
Hey guys, I have a coin toss simulation I am trying to run, but the problem is I keep getting only one result instead of a randomized one. I went over the code ...
[3 replies] Last: yes agree, srand func early to initialize random generator. if called... (by closed account 1CfG1hU5)
Virtual Functions
 
I'm creating a geometric calculator for a class assignment. I've read and read, but I can't seem to understand how to create a function to calculate the area wi...
[2 replies] Last: Thank you! (by closed account zqoE8vqX)
Need help on project (prime numbers)
 
Ok, Ive been staring at this code for 5 days now and I cant get it to work no matter what I do or try. My professor refuses to show me how to do it and inste...
[8 replies] Last: Thanks for all the help. I was able to get it hours before the part 1 ... (by specter113)
Please help
 
SOLVED THIS PROBLEM NEED HELP AN ANOTHER ONE BELLOW!!! for some reason every time i play craps it rolls the dice and no matter wat number i get i end up winn...
[3 replies] Last: ok so my next problem is that on my do/while loop i get stuck in the l... (by freecody24)
by wolfv
error: no matching function for call to 'Key::Key(Shift (*)())'
 
Can you see why this does not compile? Class CS and class Key are both children of class Action. Class Key constructor takes an Action* parameter. Key inst...
[2 replies] Last: Thank you EssGeEich. That fixed it; now it runs! (by wolfv)
by mimi88
HPAir flight map problem
 
I am trying to write a program that will read three txt file, first has city names,second the flight map,and third has the request flight.for this input the pro...
[5 replies] Last: any one want to help? (by mimi88)
How to use PerceptualDiff
 
Hi guys, i've been trying to figure out how to make use of PerceptualDiff, mainly because i want to create a 'small' app that will compare two images, but i hav...
[no replies]
October 2014 Pages: 1... 4041424344... 70
  Archived months: [sep2014] [nov2014]

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