Beginners - April 2010 (Page 9)

concerning the USB port
 
I was wondering. I am more of the electronic side of computers and not too savvy on the programmer side. but I was wondering. If I had an LED light hooked up to...
[5 replies] Last: I am not convinced about the hookup of an led directly to an usb cabl... (by guestgulkan)
vector<double>::size_type or vector<int>::size_type
 
I have a function, in which I need to use a double vector and an int vector, so I need to index both of them, should I define the indexer as vector<double>::siz...
[14 replies] Last: I disagree. Compile and look at the assembly. If you call end() in t... (by kempofighter)
Can there be multiple definitions of an overloading operator in a class?
 
Can there be multiple definitions of an overloading operator in a class? Like there are overloading constructors... Would this be valid code and will it work...
[2 replies] Last: In addition I would suggest you read up on operator overloading - the... (by guestgulkan)
can't check if file is dir
 
can someone please tell me why i can't check if the file is a directory? thanks this is system programming on UNIX console. "minifind.c" 64 lines, 1307 char...
[1 reply] : I don't see why it shouldn't work. Your indentation is horrific. I'... (by Duthomhas)
Static Functions and Variables
 
I am having trouble using static function. I am initialising two static variables in GetResult() Function and then trying to get result using get_ans1() and ge...
[3 replies] Last: From your link: When you declare a data member in a class declaratio... (by Bazzy)
Parse Error before 'else' - Can't seem to figure it out.
 
Hi, I'm new to C++, currently in the process of trying to teach myself. I figured a good place to start was to write some simple math oriented programs. I al...
[5 replies] Last: @TheBear Your example explains the dangling else pretty clearly to ... (by MenTalTerYn)
microsoft linker options
 
hi all, I have been using mingw g++ default to create and test win32 applications. But the lack of ddraw.h in mingw helder files directory I had to move to the...
[4 replies] Last: >>i assume you would have to add in ddraw.lib as well. Thanks for t... (by sanzilla)
Trouble w/ a code that involves strings/char arrays.
 
I just want to start of by saying, no I'm not here to get answers to my HW, just wanted a few hints. I have a project for class that is: Write a main procedu...
[2 replies] Last: Thanks for the tip! Hmmm... Yeah, that was my concern as well. I wa... (by YanaNerd)
by Groo
uninitialized local variable
 
Hi guys n gals, I'm getting the "uninitialized local variable 'data' used" on line 26 and i can't figure out why. The program is supposed to read from a file...
[3 replies] Last: I made those changes and not only do i still get the same error, but i... (by Groo)
by Leydin
A simple solutiom that evades my grasp...
 
I am working on the first exercise problem at the end of ch4 in C++ Primer Plus: Write a C++ program that requests and displays information as shown in the fo...
[6 replies] Last: Char problem I agree with you :- Thanks for the input. I told... (by southwest)
Cout/Cin with Arrays
 
In my programming class, we just learned about arrays yesterday. We had to create a test program that would receive 3 int values. My code is: /* Andrew M Ap...
[5 replies] Last: When you initialize the array, //variable declarations int threeVa... (by Soaps)
by LEESI
ERROR CATCH Problem
 
The below program has to be modified to throw up an Error msg FOR EXAMPLE "Sorry you have inputed an incorrect choice",I wrote this a few weeks back and now nee...
[2 replies] Last: Hey thanks for the reply,ahh right i was wondering why couldnt i just ... (by LEESI)
Functions
 
[8 replies] Last: Square Root - Modulous problem // sqrt.cpp : Defines the entry ... (by southwest)
Using functions to calculate periodic payments (1,2)
 
I have to write a program that prompts the user to input a loan amount (L), an annual percentage rate (r), the number of payments to be made in a year (m), the ...
[32 replies] Last: R = functionOne (calcFactorFuncOne, R, L, i, r, m, t); There's no c... (by Dufresne)
by Morph
Expected Primary-Expression
 
Some part of my code for(int i = 0; i < numLes; i++) { char not = "XX"; char *ptr = not; if(marks == 0) { *ptr = 'F'; *ptr++; ...
[2 replies] Last: Also, don't use == with floating ponits. It will often produce "incor... (by Disch)
Question about virtual functions and...
 
Hi, I am taking a C++ class. The subject matter has been classes, pointers, inheritance, polymorphism, streams, recursion and operator overloading. The last thr...
[1 reply] : Insane greetings to the insane forum of insane geeks are distributed, ... (by Albatross)
by Remaku
Input an integer, output digits
 
I could use some guidance on this certain problem Write a program that prompts the user to input an integer and then outputs both the individual digits of th...
[4 replies] Last: EDIT: 2^8 posts and counting. Lol, I haven't seen that one used bef... (by Mythios)
Graphics Output
 
I have Borland C++ free compiler installed on my MS windows platform. I can view the normal output window. However, when I try graphics like drawing a circle or...
[5 replies] Last: Ah, yes, that's the old Borland BGI graphics. If you are using Vista ... (by Duthomhas)
stuck on for loop
 
Working on an assignment to practice with arrays and calculate a users grade but am stuck on the initializing for loop on line 54. Don't really know what to put...
[2 replies] Last: well whats the loop supposed to do? (by squirtman59)
Question about using new on an array of structures.
 
Hi! I'm trying to learn C++ on my own using C++ Primer Plus and am stuck on the question in chapter 4. Do Programming Exercise 6, but, instead of declari...
[5 replies] Last: you do not need to allocate memory using new. Use kfgoh's second exam... (by kempofighter)
April 2010 Pages: 1... 7891011... 35
  Archived months: [mar2010] [may2010]

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