Beginners - December 2009 (Page 16)

by jojojo
can you tell me what's wrong?
 
hello I have this homework and I get the answer but it's didn't work with me , this is the first Q: Exercise 1 (10 marks) Write a program that takes two...
[1 reply] : first question: //here I don't why it dosen't work ! while( L<H)... (by MaikCAE)
Type conversion problem
 
char string = "adhjsanhds"; SetDlgItemText(hDlg, IDC_TEXTFORM, &string); The SetDlgItemText function requires a pointer to a string variable, a var...
[1 reply] : An array name without brakets is a pointer to the array. Therefore:... (by Disch)
reading from the command line
 
I want to create a program that reads the name of the file after the the command line. For instance the name of my program is main.cpp The user executes m...
[6 replies] Last: thanks (by dunsondog109)
by jofl
sorting array without subscripts??
 
i have a simple program to sort a amount of interigers that the user enteres and cannot use subscripts and i just am lost how to do this i just need a simple id...
[12 replies] Last: ok that is going great Thanks to all and to all a good night merry ch... (by jofl)
Problem displaying output
 
Hi! I'm a beginner in C++, I have a problem in running my program everytime I make a simple program and after compiling it if there's no error I run the program...
[2 replies] Last: Well you could read the rest (and I did, it was fun) but you might con... (by tummychow)
identifiers in C++ code
 
I'm having trouble with a small c++ program I'm righting and I'm having one small problem with it #include <iostream> #include <cmath> using namespace std; ...
[3 replies] Last: Where would you say that pow is no longer overkill? (just curious...) ... (by tummychow)
input from a file
 
I have a .txt file with 5 lines of text. Each line is a different quote that a character in the main function will be saying. I am using an ifstream and a get...
[4 replies] Last: Cool! Thanks! (by killemall77777)
by Lisa
Program Errors
 
Hello I have been working on this program I am having trouble compiling it and fixing my errors any suggestions on what to fix would be very helpful Thank You. ...
[5 replies] Last: Okay the program will compile now with no errors but when I go to run ... (by Lisa)
Constructing a linked list using pointers
 
Hello. I have been working on a homework assignment for a couple of days now; have looked here and at a couple of other sites, but am still stuck. Below is my c...
[2 replies] Last: Thanks for the pointers (no pun intended)! I'm still getting a bit of ... (by dominic3176)
Time complexity for O(n) and O(2^n)
 
I'm trying to figure out the time complexity associated with O(n) and O(2^n) when the values for n are 100, 1000, 10000, and 100000 regarding O(n), and 5, 10, 1...
[no replies]
declaration
 
I'm just a beginner and I'm writing a basic program in which I just want to print the absolute value of a number #include <iostream> #include <cstdlib> i...
[5 replies] Last: Thanks guys!!! I forgot to put in using namespace std; just one sma... (by jason007thomas)
by MattN
#include Related Issues
 
Evening all, Heres the problem, I have an assignment that requires me to make a number of audio effects. I have a Delay class, and a Low Frequency Oscillato...
[1 reply] : Are you using the same macro for the three inclusion guards? If that's... (by helios)
by sparky
Weighted Graph?
 
Hi, How do I create a C++ weighted Graph where each vertex in the graph has a weight (some integer value)? You can download my graph project here: http:...
[2 replies] Last: Thanks jRaskell for replying. I would like to implement the weight for... (by sparky)
Average won't average
 
So I'm trying to create a program that will average together 5 grades and tell you how you are doing. It says I have no errors, but when I run the program doesn...
[3 replies] Last: this is my work and it didn't work at first bcoz the name you decle... (by jojojo)
Printing primes using the seive method
 
I have to write a code that prints prime numbers by using the seive of Eratosthenes. I have a Borland compiler and can't seem to get this code working. No error...
[3 replies] Last: Thank you for your comments. You were right, I did make stuff false b... (by spaceboy1026)
by gedas
Vectors
 
Hey everyone, im trying to get to know vectors but i came to a point that my current knowledge stops and i need more help, i found a program which i would lik...
[3 replies] Last: That remove algorithm is in my opinion somewhat mis-named. In this... (by guestgulkan)
static function
 
What is the effect if i declare a function as static? I know the effect of static together with variables but what's the meaning if i use it with a function? ...
[1 reply] : static functions declared within the scope of a class are non-member f... (by jsmith)
first time working in arrays
 
Hi I am working on an assignment where I am supposed to create an array to store a parking lot of 10 slots. I am setting up a switch to read whether the slot is...
[1 reply] : your here #include <iostream> #include <cstring> using namespa... (by hongquan156)
C++ future
 
Hey guys, i don't know if here's the best place to expose my question but here it goes. I aways had an interest interest in learning different languages, and t...
[3 replies] Last: I had this strange feeling that C# wasn't nice as it appears to be. I'... (by Brainstorm)
argument in a switch
 
I'm trying to call a function in a switch, but I'm not sure which arguments to call. The problem is in the int main() function at the bottom I've tried ad...
[4 replies] Last: I changed all of the char arrays to have the same size, but I'm still ... (by pm2gonzales)
December 2009 Pages: 1... 1415161718... 23
  Archived months: [nov2009] [jan2010]

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