Beginners - August 2011 (Page 35)

Vowel Finder Help
 
#include <iostream> #include <string> using namespace std; int main () { int ACounter = 0; //Counts the number of times A appears int ECounter = 0...
[2 replies] Last: Thank you! Oh my god I feel so stupid. Thank you for your time and sor... (by TheMassiveChipmunk)
1d arrays and multi array question
 
what is the max size that you may put in a single demensional array? what is the purpose of having multi demensional arrays? if i wanted int number wou...
[4 replies] Last: so can you do everything with a single demensional array that you cou... (by quirkyusername)
command line
 
using namespace std; ifstream infile; int main(int argc, char* argv ) { infile.open("linedata"); int numb_char=0; char letter; while(!...
[1 reply] : line 17: break; ./a.out a <linedata You are passing as 'a' as a p... (by ne555)
by zander
hope
 
ok i just started learning c++ on my old low performance toshiba a25s2792 using these tutorials provided by your site i am now on page 90 and im pulling through...
[6 replies] Last: ok i restated at object oriented because i made a simple error i thoug... (by zander)
by wtf
I want to use Sleep() but don't want to #include <windows.h> (1,2)
 
How can I implement a Sleep() function codewise?
[34 replies] Last: What's with the square brackets? Calling Sleep(0) is not the same a... (by helios)
Accessing a Dynamic Array through pointer?
 
Hello, I've tried a search into this, and it gives a lot of results, yet they don't seem to work. I am just getting started in dynamic memory, and in my Space ...
[no replies]
Bins
 
Hello! I'm making a program that creates stars called "gravitars" and calculates their slowing frequency over a number of years. All of that is done! The pro...
[no replies]
by Peyton
Removing punctuation marks
 
Hello, Here's just a small snippet of code that correctly removes punctuation marks from "hello." Please explain what line 14 is doing. I have no idea! Also wh...
[1 reply] : [quote=man ispunct]character classification routines #include <ctype.... (by ne555)
unsure of the meaning of some code
 
hi, first post here, so sorry if the question is silly :< i'm looking though someone else's code and i see this line: typedef double (*polarfunc)(cons...
[1 reply] : this is a "function pointer" that can take one argument of shcoord typ... (by ahura24)
clrscr error
 
I am using Visual c++ 2010 express.I am trying to solve this error: 'clrscr': identifier not found I am getting the same error when using "gotoxy" If someone ...
[5 replies] Last: mmmm...i wonder when will they stop teaching ancient programming at sc... (by crawler)
Is there a better way to restart the program according to user input?
 
This is how I would loop a program according to whether or not the user wants to. The code would be, for example, a quadratic equation solver. So if "again" is...
[no replies]
by Kase
Append row into a 2D vector
 
Hi, I'm trying to append a row of floats into a 2D vector, but vector.push_back(element) seems to work only for a single element, not a row of n elements. W...
[no replies]
C++ "solutions" and programs with multiple "projects"
 
What are "solutions" in c++ projects and whats the reason for having them? I first noticed them when working with game SDKs at uni and I found them strange. All...
[1 reply] : [quote=Blessman11]What are "solutions" If you're referring to Visual S... (by lnk2019)
by wasabi
Using parent assignment operator
 
Let's say I have the following code: struct A { int a; operator=(A& obj); }; struct B : public A { int b; B& operator=(B& obj); } I b...
[no replies]
by Nelli
Basic Function Help
 
Ok complete novice attempting to understand functions so please no bashing. I am attempting to create a simply function call from main in which the function its...
[4 replies] Last: [quote=Nelli]I am not sure what you mean by blocks.... He means surrou... (by lnk2019)
by qweasd
error: expected ',' or ';' before '{' token.
 
Hi there. I'm new to programming and I saw somebody working on a blackjack game and decided to try it myself. I'm not too good yet, and I was wondering if someo...
[5 replies] Last: Thanks a lot! I'll work on that stuff, thanks! :) (by qweasd)
by Nelli
Big Racket Function Problem
 
I have been working this problem for 2 days now, I know I am a novice but it's killing me, I have attached my code and still can't get it all to work. I haven't...
[7 replies] Last: Wow That was fast! You must pass the variables TO THE FUNCTION when ca... (by closed account D80DSL3A)
Move a character around a console window
 
I have keyboard input good, now im just wondering if there is a way to move a character of text around the console window, like change its position to go one li...
[1 reply] : Yes, but I feel obligated to provide this link: http://www.cplusplu... (by Disch)
how should i write a syntax which diagnosis that user press enter or space?
 
in c++ when user press enter or press space i want to do defferent orders.for example when user press enter it prints "you press enter" and when press space it ...
[6 replies] Last: What don't you understand, the switch construct? or the fact that two ... (by eidge)
by Rox
How to compare command line params with strings?
 
I am wondering how I can compare the command line arguments with predefined strings/char arrays. int main(int argc, char *argv ) { if(argv == 'hello...
[6 replies] Last: Once again, to clearify further, 'hello' is invalid syntax and shoul... (by moorecm)
August 2011 Pages: 1... 3334353637... 39
  Archived months: [jul2011] [sep2011]

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