Beginners - September 2008 (Page 6)

by quant
declaraton & args
 
hello everybody, When I do that it say to me what "data" undeclarated. void create(){ add.time->(&data); } int main(int argc , char *argv ){ argv = (cha...
[2 replies] Last: resolved. data = argv ; (by quant)
by lcroy
start learning c++
 
hi folks,i want to start learning C++. if anyone could introduce some books to me?thanks a lot!! by the way, i am a beginner.
[3 replies] Last: http://newdata.box.sk/bx/c/ Added to my reference. Thanks!... (by audinue)
Array sorting using pointer to pointer
 
I want to sort an array of structures by a structure variable. Sorting the structures directly works. Re-wrote the merge sort routine to sort _pointers_ to t...
[18 replies] Last: Problem SOLVED. Thank you al for helping. To sum it up: 1. The ... (by eager2no)
combine functions and linker error??
 
I started a program that calculates an employee's weekly gross pay when the user inputs hours worked and hourly pay rate. With what I have so far, it compiles f...
[2 replies] Last: The prototype for get_pay() says it takes two floats, bu the definitio... (by helios)
having more than one source file in the project
 
Hello again, How to connect between two source files? Lets say I have 2 .cpp files in one project: 1.The main program: #include <stdio.h> int a ,c; mai...
[2 replies] Last: Thank you for answering my question, but when I try building it I get ... (by neo4life)
by dorani
void reverse function
 
How would you develop a program that inputs a five digits integer, separates the integer into its individual digits and prints the digits separated from one ano...
[3 replies] Last: Congratulations, Bazzy. You have failed the Internet, programming, an... (by helios)
can't run my program
 
guys there is something wrong with my code and i cant find what. can you help #include<iostream> using namespace std; int main(void) { system("TITL...
[2 replies] Last: tyvm its my 1st day programming and im a bit nooby lol (by DUDEMAN)
Convert stream to *
 
Ok, so what I am trying to do is allow the user to input their password to login, but I want the stream showing on the screen to show "*****" instead of their p...
[9 replies] Last: If you are looking to crack someone's password, it actually helps a s... (by Duthomhas)
by arturk
Project Propasal
 
Good day to all, I'm a c++ student. I have a problem about this subject, I need help or suggestion! Because my instructor told us to make a project proposal but...
[4 replies] Last: You could do a project like mine. Right now I am working on a program ... (by LacViet)
Displaying ".00"
 
Hello guys. I just had a quick question. I've got a program that is supposed to display information about net pay, social security withheld, etc. and thus n...
[3 replies] Last: You also need to use the fixed flag. cout << fixed << setprecisi... (by Duthomhas)
by horkko
Pass a new comparison method to list.sort()
 
Hi, I am a beginner to C++. I'd like to use list::sort() with a custom sort method. I read from the sort() doc, that we can pass a custom method. I tried t...
[no replies]
by rifki
Ponters to objects
 
Car* MyFunction (Car *myCar); HI Can someone explain fo a beginner what the function above is all about
[1 reply] : It is declaring a function named "MyFunction" that takes a pointer to ... (by jsmith)
Pointers vs References (1,2)
 
Would it be better to use pointers or references to pass varibles in and out of a function? Thanks!
[32 replies] Last: The nature of references is implementation-dependent. If you compile a... (by helios)
by Roads
else
 
Someone posted earlier and wanted two arrays - one for odd numbers and one for even. Since I'm a total newbie it sounded like a good exercise for me to try but...
[6 replies] Last: jsmith, thank you very much! Your post made me really think about wha... (by Roads)
by mrcpp
Linker error
 
I must be making a silly beginner error but I don't what it is. The link error is: LNK2019: unresolved external symbol "public: __thiscall collection::col...
[3 replies] Last: Thanks a lot. I'll see the article too. (by mrcpp)
by amando
About recursion
 
I'm trying to write a program accepts a postive integer and calculates f(x)=1^1+2^2.........+x^x by using recursion; i'm a really newbie in c++, plz h...
[2 replies] Last: int PowerSum(int n) { if(n == 1) { return 1; ... (by pet)
by Prim3
C++ cout problem
 
Hello. I'm having a bit of difficulty with my program. Basically, you enter hours, minutes and seconds and it will calculate the equivalent amount of seconds. M...
[5 replies] Last: Hours/minutes/seconds dont really have to be of type double, since in ... (by Poke386)
constructor problem
 
I have a lab due tomorrow and working on it for a while I get the error no appropriate default constructor. #include<iostream> #include<iomanip> #include ...
[19 replies] Last: Thank you all for the help im off for the night (by growe79)
undefined reference to function
 
i have written a code to find the roots of a quadratic equation using functions passing 2 pointer parameters. when i compile the code i get this error /t...
[4 replies] Last: Your quad function is returning a pointer (array) that is allocated on... (by jsmith)
input problem (1,2)
 
I'm trying to create a game in a console that is very similar to space invaders. The game works but the x's at the top will not continue to move unless you inpu...
[23 replies] Last: yeap... If you install in your computer the greek alphabet, as a keyb... (by Mitsakos)
September 2008 Pages: 1... 45678... 16
  Archived months: [aug2008] [oct2008]

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