Beginners - April 2014 (Page 51)

by Jekjek
Error! Need Help! Stuck!
 
I'm having an error on line 63 of my code saying invalid types 'double* ' and i don't know if there are still other errors in my codes. I'm stuck and don't know...
[2 replies] Last: Right, i forgot about that array should always be an int. Thanks. (by Jekjek)
by rshoe
Arrays and Functions
 
Hopefully someone can help me with this problem I am having with functions and arrays. I have to fill array with random numbers using a function and print out ...
[2 replies] Last: Thanks for quick reply: Basically I have to fill out an array using a ... (by rshoe)
What's the issue?
 
I'm writing a program that writes a check by converting numbers into words. (10th Grade Computer Science, should be pretty simple except for the fact that I'm m...
[3 replies] Last: wildblue, you're a life saver. Such a simple error too. That's just em... (by Shrekdonkey)
What is this?
 
what does this do? if(node->left) I mean the (->)? And can this be replaced by something that does the same?
[3 replies] Last: Basically the way I understand it is, left is a function of the node o... (by brandonhspace)
Difference between get() and getline()
 
So I'm currently teaching myself C++ from a primer book I have and have run into a tricky part of the book I simply don't understand. The book's example of t...
[6 replies] Last: The second call doesn't remove the newline character because it stops... (by long double main)
Outputting elements of an array with a for loop?
 
How would I write a for loop to output the elements of this vector while being general with the number of elements (without specifying the size of the array). ...
[1 reply] : Hello. You can use an iterator for the vector. Check out the followin... (by bayronOrtiz)
ton of errors
 
i have a ton of errors on this code im testing some of the errors are HANDLE HWND UINT FILETIME PFILETIME #include "stdafx.h" #include "CPUUsageRateMonitor.h" N...
[5 replies] Last: ah, whoops. You're not including your header. cmonitor.cpp will need... (by Disch)
If statement issues
 
This is supposed to be pretty straight forward, but I can not seem to see what my problem is. HELP? #include <iostream> #include <iomanip> using namespace st...
[4 replies] Last: OF COURSE! Thank you!!! (by jmelchior1)
by Alby94
pthread_kill()
 
Why this thread continue its execution though I kill it?? pthread_t pid; pthread_create(&pid, NULL, (func)countdown, NULL); pthread_kill(pid, 1); pthre...
[3 replies] Last: It can, under some conditions. See docs pthead_kill: http://pubs.openg... (by Cubbi)
Eight Queens, arrays
 
My program is supposed to make an array of 8 that symbolize for each column, the row that contains a queen, then prints the board. I just can't figure this one ...
[2 replies] Last: Right, I was wondering why the dots were messed up. I traced the code ... (by RobGillespie)
two codes
 
how can i make 2 separate codes run in two different cmds. from the same codes(irony) so basically 2 codes in one
[1 reply] : Please explain more. (by keskiverto)
Hash Table help
 
Hey, guys. I'm working on making a simple Hash table, and I'm using vectors. The problem I'm having is whenever I try and search through a list, like below. ...
[1 reply] : It would help to see what hashtable.h and hashfunction() looks like. ... (by AbstractionAnon)
battery flag charging
 
i need help getting BATTERY_FLAG_CHARGING to work in lines 53-60 #include <Windows.h> #include <iostream> using namespace std; int main() { whil...
[3 replies] Last: Replace line 53 with what I provided. status.batteryflag is a seri... (by AbstractionAnon)
Array-size defining
 
I think this method of defining a size of an array is wrong, but I have no idea why... Someone explain to me why this is wrong and explain a method of defining ...
[6 replies] Last: How is the compiler to know how many ints to allocate if n is not know... (by AbstractionAnon)
Problem with a counting mechanism in a for loop
 
The problem is with taking 'counter' and applying it to the for loops at the end of the program so that the output only shows the inputs, and not the rest of th...
[3 replies] Last: What happens if the user enters a bunch of out of range values in the ... (by kempofighter)
Vector subscript out of range
 
Hi i have a problem with my game.When i shoot the first ship it works fine but when i shoot the second ship it gives me this error Vector subscript out of range...
[5 replies] Last: OK i fixed all the problems ! Phew that was a real headache..... I wil... (by SorinAlex)
Need help with this linear search program
 
I'm kind of new to this and my program won't compile and I can't figure out why. I can't find any problems in my code. The programming challenge is to allow the...
[2 replies] Last: Thanks! Sorry, this is the first time I've ever posted to this site. (by taylor5479)
Needs to be a modified lvalue
 
Hello, I am trying to figure out why it keeps throwing me this error. The only way it lets me get rid of it is by entering == on each equation. Then i get a hug...
[1 reply] : tax = tax_percentage / 100; //here total_tax = tax * cost_of_device; ... (by Smac89)
Simulating the Movement of a Spring
 
I am taking a Data Structures class in college, and I am looking in to an extra-curricular project of writing a program that simulates the movement of a weight ...
[no replies]
Class Struct Members
 
I'm having some difficulty figuring out how to create an instance of a struct within one of my objects. Here is what I am trying to accomplish: Within the m...
[7 replies] Last: If you want named objects, use either an std::map, or add a string mem... (by helios)
April 2014 Pages: 1... 4950515253... 67
  Archived months: [mar2014] [may2014]

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