Beginners - October 2009 (Page 10)

101 Question: Passing Numeric Command-Line Arguments
 
I read a book, there is a small program which add 2 numbers. The "add" program begins from int main(int argc, char *argv ) In the command line input ...
[1 reply] : argc is the number of arguments. It is the program name plus the numbe... (by garob)
can c plus build my game designing software?
 
Hi i'm new here i'd like to know if c plus could build my own computer game designing software?
[4 replies] Last: This one is earlier than that one. (by helios)
modulo operator problems
 
My assignment was to create a kind of check cashing program, that when the check amount is entered, the correct denominations of bills and coins to be returned ...
[5 replies] Last: thanks everyone for all of their input. (by mattzorx)
User created function
 
I have the function get_value and if someone enters a negative number it will cout "The value must be non negative. Please try again." Instead of "Return 0;" I ...
[1 reply] : Use a loop. (by Duthomhas)
integePOWER function without math library functions
 
I need to create an integer^Power program for example. User gives 2 numbers (first is int, 2nd is power) (3,4) = 3*3*3*3 or 3^4. I think I need to use a for or ...
[6 replies] Last: Some learn by going in depth and making sure they understand every li... (by firedraco)
pointer 102 question
 
I read a book int main() { int i; f(&i); cout << i; return 0; void f(int *j) { *j = 100; } } I don't understand why f(&i) will work &i i...
[1 reply] : You could have posted this question in the other thread. f(&i); ... (by helios)
dose c plus cost alot and is it easy to work with?
 
I'd like to look into c plus more but i'd like to know ifit cost alot and is easy to work with,and i would like to know how to about building my own game design...
[no replies]
pointer 101 question
 
I read a book It said int main(){ int i; int *p; p = &i; f(p);} void f(int *j) { *j=100; } One thing I don't understand p = &i; // My u...
[1 reply] : 1. Wrong. The compiler will complain about trying to assign a pointer ... (by helios)
Critical error (not in error list)
 
Huhu, when I am trying to debug/run my app I get a critical error: http://www.abload.de/image.php?img=unbenannt13vp.jpg Code: http://nopaste.org/p/ari6Oiw...
[3 replies] Last: The 0 is being treated as a pointer unfortunately, that is why it com... (by guestgulkan)
hex dump program
 
Okay so I have a project due in a class that we have never written a program in and never covered any programming, fortunately I know a little C++. I've search...
[2 replies] Last: You'll have to read 16 bytes from your file( http://www.cplusplus.com/... (by hamsterman)
Increment gone wrong
 
Im having problem with the output of this program that i made that supposed to count the numbers of successful a's and b's based on the pattern indicated in my ...
[6 replies] Last: i dont know what to used rather than cout.. and im still learning this... (by songryong)
by psnurr
Big array, stack/heap overflow?
 
Hey, I'm a beginner to cpp, just started poking around with it the other day and now I've ran in to a problem that I can't seem to find any info about using goo...
[5 replies] Last: Okay, I found out what I had done wrong, and how to do it properly mys... (by psnurr)
LF Input on Bubble Swap Function
 
This is a program im making that runs from an input file of 25 item ID's, Names, Units Sold, and Unit Price. I'm having trouble with my void sortem function i m...
[no replies]
function problem with file i/o
 
Okay here's my problem the program compile but when i select option 1 it gives me the fatal error message, when i select option 2 it just closes and i dont see ...
[3 replies] Last: Actually I was able to figure it out, it turned out I needed to add so... (by Crazyhat)
by Null
What's this?
 
struct st { unsigned :0; //what's this? }; can you explain what is this? Thanks!
[2 replies] Last: Thanks (by Null)
by nevero
Getline problems
 
Hi, I need some help with the ifstream and the associate getline function. I'm trying to read some text (on multiple lines) from a simple text file. ...
[3 replies] Last: Thanks a lot, it's now working fine !! By the way, thanks for remin... (by nevero)
by rej3kt
Quick question!
 
Putting a second if statement within a switch statement : case 'm': cout << "Please enter a number between 1 and 20 to find the multiplication table of: ...
[1 reply] : Well, I'm not sure if this will solve it, but you sure don't need a b... (by hamsterman)
Datastream from .dll file in C++
 
Hi there I have made a small GUI interface for other people at my lab used for training rats and to acknowledge that everything is working in the system. The...
[3 replies] Last: I've only now seen your reply. Is this still a problem? (by kbw)
by rej3kt
For loop multiplication table.
 
Really stuck on this tbh, everything i've found on the internet is basically using things like setw which apparently we cant use and don't need to. Havn't learn...
[6 replies] Last: nice one got the if tags working I was putting them in the wrong place... (by rej3kt)
speeding up a while loop full of ifs and class function calls
 
My main WHILE loop is too slow, and I'm too ignorant to know where to go from here to speed things up. I think nested if statements would speed things up, but ...
[1 reply] : Nothing in the above function looks like it should be slow. Perhaps r... (by jsmith)
October 2009 Pages: 1... 89101112... 25
  Archived months: [sep2009] [nov2009]

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