Beginners - May 2013 (Page 18)

by epi975
Changing the colour of a single char in a 2D array
 
Hello, I have a 2D array of chars that has a char (@) that I wish to change the colour of that individual char. I came up with some code that I think should ha...
[3 replies] Last: Btw you should put the "Map" inside the main function globals aren't t... (by giblit)
Program hangs on function call
 
Hi guys. First post here :). I decided to give C++ a try a few days ago, dive in and just see how it went. I managed to get through ok with the help of the cpp ...
[2 replies] Last: D'oh, just found where my problem was: lines 57/58: this->CharStrengt... (by manudude03)
using namespace std; OR std::
 
Which is correct? Which one is better/worse? whats wrong with each? #include <iostream> using namespace std; int main() { cout << "Hello world...
[5 replies] Last: As giblit has already said, using using namespace std; at global sco... (by andywestken)
Problem
 
Hey guys ;) Ive written a programm but it doesn't work... What's wrong? it was supposed to sort numebers. #include<iostream> #include<fstream> #includ...
[3 replies] Last: Thank you Ispil! I'll try ;) (by aerialist84)
commad line arguments
 
How do I get my program that finds the max product of the 20 by 20 array by using a command line function such as -row 20 -column 20 and it print the product of...
[2 replies] Last: I kind of understand the argc and argv arguments but the only problem ... (by bruntmjust)
cannot appear in a constant expression?
 
This code is really incomplete but I'm trying to work out what's going on to fix errors before I move on. Sorry it's so long. My teacher gave us two chunks of ...
[4 replies] Last: @ Cubbi thank you, I think I understand now. And now I see what you me... (by idealcat)
by SmOgER
Code not working properly, condition is being ignored, no errors.
 
No matter how hard I try, I can not find anything wrong with this code, lol. Thanks in advance. #include <iostream> #include <fstream> #include <...
[4 replies] Last: The code as posted in the original post works fine for me with the dat... (by cire)
How to add a timer loop break command that the user can input?
 
Hi! Me again, I have a feeling I will be posting here frequently now, I hope it's not too cumbersome. I am now learning to create functions and I made a simple...
[13 replies] Last: Alrighty then, works now! Thanks for walking me though this, I can't i... (by Megakoresh)
by Trinal
Custom Cipher Language
 
I created a cipher type language a few days back along the lines of:a=o, b=d, c=v, ect. This "language" also has rules like "if a word ends with "k", it becomes...
[2 replies] Last: The " if word ends with " rules require separate treatment though.... (by keskiverto)
illegal use of non static funcion
 
i'm getting an error which states i have an illegal use of non static funcion? what's the problem, with my code? H file #ifndef Number_h #define Number_...
[5 replies] Last: It recognise Int::printNumber() all right. It is Number::printNumber()... (by Peter87)
Apples
 
Hello, I've just started my adventure with c++. I found a task: get weight of 10 apples form keyboard and sort it high to low. I did it, but I've got no idea wh...
[4 replies] Last: There is a function in algorithm called std::sort you could use with a... (by giblit)
#include h files
 
hi, guys i have a problem. I am doing my homework and came a cross a problem. I have two include files which call each other, and the program doesn't work. is ...
[2 replies] Last: Circular dependency is the problem. Forward declarations are the solut... (by Catfish4)
crash in program
 
Hi everybody this my code for submitting student info and searching them by id number. no compile error and warning just crash Enter data work correctly b...
[1 reply] : float grade ;//Declaration of float array //consisting... (by MiiNiPaa)
Designing a visual stimulation task in C++!
 
Dear all, I am new to C++ and for some reason I had to switch from Matlab to C++. Hope that I can get some useful hint for this question. I am trying to design...
[1 reply] : Use some graphics lib like SFML or SDL. It will seriously ease your li... (by MiiNiPaa)
by KEND0
help pls...
 
Write your question here. #include <iostream> #include <cmath> using namespace std; void loadinput(); void printgrid(); bool checkrow(int row, int co...
[1 reply] : grid is two dimensional array (look at it as a table) of Playinggrid t... (by MiiNiPaa)
by Focus
Interacting with websites
 
If i would like to use data from a website and handle it in a program, what do i need to learn and where can i find a good tutorials for it?
[2 replies] Last: Thank you! (by Focus)
Creating a function, Blackjack
 
I have some errors with my code, but I would like help with creating a function to tell me if the dealer or the player has busted. Help Please!! #incl...
[1 reply] : What help? You write a function. Pass necessary data as parameters, re... (by keskiverto)
libstdc++-6.dll not found
 
"The application has failed to start because libstdc++-6.dll was not found" is an error I run into when trying to run the program found here: http://pastebin.co...
[10 replies] Last: @Catfish4: VS10 only supports XP SP3 onwards. VS11 should be from XPSP... (by S G H)
Resizing a Vector of Vectors
 
I'm trying to figure out how to resize a vector of vectors based upon the user's input. I'm making a method called setGrid which should take in the # of rows an...
[16 replies] Last: Oh, well, I meant VS10... Good to point things out anyways. (by S G H)
Adding "continue Y/N" in a loop
 
Hello guys! New guy coming right up! :) Just atarted learning C and I am experimenting with a simple "calculator"-program. Now I want to add a question at the...
[4 replies] Last: on line 17: you forgot something at the end of the line the scanf() ... (by coder777)
May 2013 Pages: 1... 1617181920... 66
  Archived months: [apr2013] [jun2013]

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