Beginners - November 2015 (Page 30)

finding neighbors of a cell in 2d-array
 
Hello everyone, I'm having trouble with finding the neighbors of an 2d array. I know where the code fails, but I can't figure out how to fix it. Here's the...
[2 replies] Last: Thank you! (by Edward01)
upper to lowercase
 
how can i fix this error int count=0; char str =respond; char c; while (str ) { c=str ; putchar(tolower(c)); count++; } w...
[1 reply] : char str = "respond"; (by DDomjosa)
SIMPLE system tray icon
 
Hey guys, Huge programming noob here. I had a little knowledge of C++ and I couldn't find a utility to do what I needed to do (perform some automatic tasks ...
[1 reply] : Alas, it doesn't get any simpler than what you are finding online. The... (by Duthomhas)
by ohad
good month everyone
 
i want to input one long string and than divide it to tow separate strings #include "stdafx.h" #include <stdio.h> #include <string.h> void main() ...
[6 replies] Last: debugging symbols http://stackoverflow.com/questions/4813975/why-is-vi... (by mutexe)
ios::app 'ios' has not been declared error.
 
Hi, I get an error in the following code on line 9: 'ios' has not been declared . I'm using a Code::Blocks IDE if that helps. #include <iostream> #inclu...
[5 replies] Last: Тобто std::ios::app, так, принаймні, компилює... (by Dmytro)
please help me
 
Write your question here. Write a program to calculate the property tax. Property tax is calculated on 50%, 60% or 70% of the assessed value of the property ...
[1 reply] : I think you should read this first. http://www.cplusplus.com/forum/beg... (by Thomas1965)
by Dmytro
Your help me that would be Open Watcom understand and check it out th, learn be!
 
Good  the time of day! I'm trying to use Open Watcom along with CMake, and I need your help. I want to make sure that Open Watcom normal and work. I really ne...
[no replies]
How can I overload << and >> bitwise operator in c++?
 
How can I overload << and >> bitwise operator in c++? And what is the use of these operators after oveloading?
[3 replies] Last: The primary (only) purpose of overloading an operator is enhanced rea... (by Kevin C)
How can I make a variable global from another source file
 
Hello, how can I make a variable global like for example i have a variable int num =1, it is in numbers.cpp , but I want to transfer it or make it global to mai...
[2 replies] Last: In main.cpp, add (in a global scope, somewhere near the top of the fil... (by Kevin C)
How does this work?
 
After hours of research, I've finally found a way to only have to press Enter ONCE to continue. Before, if I didn't have input I would have to press Enter twi...
[4 replies] Last: ...because conio.h is non-standard and doesn't always behave. Further... (by Duthomhas)
by Molly
moving a circle on a line
 
Hi . Could someone please help me with this ? this is a simple board made by circles . three small circles will be thrown and land on a random point in the ...
[14 replies] Last: @dhayden those numbers specify the range where the small circle shoul... (by dhayden)
Declaring an array inside a class
 
Hi, I was writing a code in which I use two different classes; contact and phonebook. I want to declare an array of type contact in the phonebook class, but can...
[4 replies] Last: Thanks a lot! (by zaryabsaeed)
by bastri
Private? Protected? ...
 
Hi, I have a doubt. Why can I Set the attribute "int X" in "Class2"? "Class2" doesn't have the variable member "int X" "Class2" is derived class from Cla...
[4 replies] Last: Solved. Thanks. (by bastri)
Runtime two dimesional array?
 
So far I can make a run time one dimensional array #include <iostream> using namespace std; struct bob { bob(); ~bob(); int x; int ...
[3 replies] Last: http://stackoverflow.com/questions/936687/how-do-i-declare-a-2d-array-... (by closed account 48T7M4Gy)
Uninitialized Local Variable
 
Hello I have a header file that is name Warrior. I'm getting an error naming error C4700: uninitialized local variable 'warrior' used.Below is the code where i...
[1 reply] : it means you didnt initialize the warrior where it was declared as loc... (by xenoviaquarta)
Does this program look right?
 
I need to write a program that prompts the user to input 3 values 2 integers and 1 float, and then display them. would what I have be correct? Thanks! WH...
[7 replies] Last: read up more is my suggestion first off declaring your ints and float... (by anhlamgame)
Graphics
 
May I know of any platforms that are highly recommended, easy to use and with tutorials on how to install and use for graphics in c++? It's quite urgent and I w...
[2 replies] Last: 'Platforms?'. Yes, Linux, Windows and Mac OS on x86 processors can do ... (by Kevin C)
How to read in spaces
 
This function reads in first and last correctly. What isn't correct is that when I read in answer, it ignores the blank spaces held in the file. How can I read ...
[no replies]
Area Problem
 
2.1 - Design a class point that has x and y coordinates as data members: Include the following member functions:  Constructor with arguments  Construct...
[2 replies] Last: so i didn't understand what should i do ?? (by williambj15)
d0ta
 
create dota using c++、 is it possible?
[6 replies] Last: Ask Gabe Newell. gaben@valvesoftware.com (by xismn)
November 2015 Pages: 1... 2829303132... 53
  Archived months: [oct2015] [dec2015]

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