Beginners - September 2012 (Page 33)

multplicaon operator
 
can we use multiplication operator as * as unary operator?
[2 replies] Last: The first question has to be, what is unary multiplication? That asid... (by andywestken)
g++ compilation problem
 
Hi, I'm compiling a bunch of files using g++. The files compile fine in Ubuntu but they won't compile in CentOS (5.8).
[7 replies] Last: SOLVED Ok the problem seems with the gcc package in CentOS. The gcc... (by smeaglegolum)
by culin
turbo c++
 
hi ! Does anyone here knows where i can dl turbo c++ ebooks..i urgently need it ..pls
[no replies]
writing a program
 
How do i write a program to print the larger of any 2#. write a program to print the largest of any distinct 3#
[5 replies] Last: For your second program, you can simply add another number then compar... (by zakkor)
can anyone tell me what this involves?
 
just wondering what general area does this kind of question fall under so I can learn how to solve it. The value of the following expression is ______ ...
[2 replies] Last: It might also be about implicit type conversion, although D isn't a li... (by BlackSheep)
How do I convert my char array that reads 50 characters to a string array that reads an unlimited amount of charaters
 
I'm trying to change my char array to string so an unlimited amount of characters can be entered instead of it being a limit ex. (char DNA ) this means I can ...
[7 replies] Last: there always room for improvement, but i think within a month or two y... (by sigmablack)
unresolved external symbol
 
Hello - would really appreciate some help with this.... compiler returns this error: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main...
[3 replies] Last: Many Thanks ..... for the help very much appreciated !!! - (by BigPete)
Char and Strings similar?
 
Are they similar? They both can store words, and is it that char variables can store up 256 characters the only difference?
[4 replies] Last: The idea is that one cannot represent a string of characters using the... (by vince1027)
student that needs some help
 
Im taking my first comp science class and am having some trouble understanding c++ I'm going through some hw now and ive been stuck on this question for a wh...
[1 reply] : Output would be -2.0 and -10.0. a=3.0 b=5.0 a = a-5.0 = 3.0 - 5.0 = ... (by pogrady)
Splitting a string
 
I'm attempting to split a string like this opcode The label and arguments are optional but there is always an opcode and there is always whitespace ...
[1 reply] : Why are you using the do-while loop? If all you're doing is extractin... (by cire)
Frustrated Dad needs help with Sons project
 
My son is trying to write a simple multiple choice program for a school project, it should output "You are correct" if correct answer is given or output "You ar...
[13 replies] Last: btw sir, you can learn from here: http://cplusplus.com/doc/tutorial/ ... (by chipp)
by jc4bs
Need Help With Loops
 
I have been working on this code for hours every day for the last week and I just cannot seem to get it. I do not even know if I am starting it correctly. The ...
[1 reply] : Have a look here for more information about loops: http://www.cplusplu... (by georgep)
Array
 
I have to write a program that declares an array of fifty elements of integer type, in which each element is equal to sum of two previous elements. When i compi...
[1 reply] : This is why you are getting that as output: for(int n=1; n > 0; ++n)... (by georgep)
by samrux
Console Game: "Skeptor". Wanting code revision and opinions/suggestions [v0.7.3] (1,2)
 
This is a Work In Progress game. It's currently v0.7.3, with only Chapter 1 and half of Chapter 2. " You wake up in a forest at night. You just remember ...
[36 replies] Last: Ahhh man, should always finish what you started :) (by Phil123)
Stuck in Arrays
 
I have created an array. There are two arrays, I want to print larger than 50 values in the s array. It should be like this 70 92 68 90 99 0 0 ...
[3 replies] Last: After doing following changes it showed, if (t >=50){ s =t ... (by prabhanuka)
problem with overloading operators
 
So, for my c++ course, I am trying to make a "Calculator" class that is basically teaching us how to overload operators and organize a basic class. my class ...
[5 replies] Last: ok, that makes alot of sense. Thank you so much for your time and hel... (by sourbeer55)
by pcworx
for loop has me confused with local variable
 
/ change the contents of an array using a function #include <iostream> using namespace std; void cube(int *n, int num); int main() { int i, nums ; ...
[4 replies] Last: Soranz, Thank you very much, I had often heard you must seed for rand... (by pcworx)
by Nausea
SDL Sprites in different sizes
 
Hi there, I am trying to understand how I would go about drawing sprites from an image, sprites with different sizes. For example: When i load my image file ...
[7 replies] Last: The easiest way to do this would be to use a GIF to store your sprites... (by chrisname)
Error: declaration is incompatible with...
 
Hi everyone, I'm writing a function definition for my header file and I can't get rid of this "declaration is incompatible with" error. This is my header: ...
[4 replies] Last: Ahh, alright thanks a lot! I always get confused with pointers in the... (by ryanmcclure4)
Help with Loop & string display
 
I am having trouble with the first for Loop. It only executes once. I can't figure out what I did wrong :( I also can't get the student names to display either....
[5 replies] Last: Will do. #include <iostream> #include <string> //For student names... (by arlam110)
September 2012 Pages: 1... 3132333435... 62
  Archived months: [aug2012] [oct2012]

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