Beginners - April 2011 (Page 8)

by CStu
Delete Characters
 
Can someone help me so that the program takes in a phrase and can delete a character/word/phrase? Thanks #include <iostream> #include <string.h> using na...
[2 replies] Last: You just need to decrement "i" by one. for(int i = 0; i < strLen; i+... (by Branflakes91093)
by seerex
Console application worthless? (1,2,3)
 
hi all, i recently started programming in c++. Its kinda my first programming language, except for a single book of actionscript 2.0 in flash mx. The book i'...
[56 replies] Last: this is getting ridiculous. this thread is going nowhere at this poin... (by ascii)
function being skipped
 
I'm sure it's something simple, but why is my printNewLine function being skipped? #include<iostream> using namespace std; void printStar(int); void p...
[3 replies] Last: Wow. I feel even more stupid now. You guys are right. Sorry to waste y... (by Axl Van Damme)
Possible Function?
 
Uhm... I'm at a loss... I can't find it in the tutorial, so maybe it doesn't exist, but is there a function that can do something like this: if (variable 1 is...
[4 replies] Last: Yours is completely right xD I'm just a little confused. (by Shay9999)
C++ Convert Hex String to Binary String.
 
Alright, I've searched on google for two hours now, and nothing has worked how I wanted it to (or I'm just not using it right). I have a std::string that hol...
[8 replies] Last: was a lot more simple then I thought.... string GetBinaryStringFro... (by WriteGreatCode)
Tips for programming scientific applications
 
Good day. I am developing a scientific application which will be have math methods. All models have a static part which is common for all math models. For examp...
[1 reply] : Could you be more specific? Maybe give an example of what you mean. (by GodPyro)
C++ Help with Rainfall
 
// ************************************************************************** // // Rainfall.cpp // // Reads in the average rainfall for each month (Jan-...
[2 replies] Last: @Disch Agreed and the section before that. (by GodPyro)
Still stuck on menu
 
Instead of converting to SDL like I was told, I am being stubborn and trying to figure this problem out still. The following switch statement (menu): using ...
[12 replies] Last: Solved my answer; I was using break "correctly" but it wasn't what I ... (by LittleQuick)
by bacpp
finance function
 
hi, I am trying to compile this program to compute the Present Value using the following code, and I think my main() function is flawed. Any help would be real...
[10 replies] Last: thanks guys, it works now... here's the code I used to calculate t... (by bacpp)
by makr28
Pure virtual functions
 
Every functions defined in the CTime CDate and CDateTime but I still get a C2259 error when i try to make a CDateTime object in main. namespace MRDateTime {...
[4 replies] Last: As I said mate- Your virtual function overrides in the various derived... (by guestgulkan)
getline function skipping
 
I'm trying to use the getline function to get a string with spaces but it only gets a newline and skips the prompt. Here is the code: while ( 1 ) { ...
[2 replies] Last: Cool! It worked. Thanks webJose for the prompt response. (by frankctd)
error converting from std::vector to non-scalar type requested
 
Hi, The full error message is: error: conversion from 'std::vector<walls, std::allocator<walls> >' to non-scalar type 'walls' requested I essentially h...
[4 replies] Last: oh dear silly mistake. Thankyou very much. :) (by chr15chr15)
Perfect Maze algorithm
 
I've been trying to make a small maze generator to display a maze on the screen. It goes through the algorithm and displays a maze, but it's only changing some ...
[3 replies] Last: Yer a genious :) I changed the code to this and it works: ... (by zantocon)
Formatting the appearance of a program
 
Is there a way to format the text in a basic console program? By formatting I mean like changing the colour of text or maybe underlining it? If yes, how?
[13 replies] Last: Sorry. Didn't notice! its late night here and I was a bit sleepy! My b... (by Nisheeth)
pow function problem
 
Hi, I am currently taking an intro class to C++. Our teacher wants us to use any method to figure out how many weeks it will take to become a millionaire if......
[2 replies] Last: thank you! works fine now! :) (by theberkeleyboss)
by tonnot
Need acces to Class A->ClassB->one_function, how to declare ?
 
I have a Class A, with an instance of ClassB.: myclass_a_b From the main : ClassA myclassA; myclassA.myclass_a_b.accesible_method(); My class_a_b ...
[4 replies] Last: class A { public: function_you_want(){ }; class B : public c... (by zantocon)
Help in Battleship game
 
I don't know what I am doing wrong. I can't make the ships to be displayed. Any suggestions please? And also after I choose the coordinates the first elements f...
[18 replies] Last: You're welcome. :) Thats what we are here for. Your code above is be... (by GodPyro)
by dAND3h
game class question
 
Hi, I am about to try to implement a simple combat system for my SDL game. I am currently writing a Weapon class. My Player class will have an inventory(Array) ...
[5 replies] Last: You're welcome! :D Good luck with your game! (by GodPyro)
C++ Application "not responding" with System (); API
 
I'm working with the environment, have the following code, is a part of a GUI APP void APPDlg::WxButton1Click(wxCommandEvent& event) { system("start ...
[1 reply] : Please :( (by Michelins)
Pointers
 
I read the article here about pointers, but what I didn't get was: What is the point of using pointers? And since I couldn't use it, I didn't understand it pro...
[5 replies] Last: Understood. Thanks a lot. O.K. I will go to those parts soon. (by Nisheeth)
April 2011 Pages: 1... 678910... 55
  Archived months: [mar2011] [may2011]

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