Beginners - July 2011 (Page 24)

Code Skips?
 
#include <iostream> #include <conio.h> #include <string> // Includes filestream #include <fstream> using namespace std; // Objects can vary from class class ...
[5 replies] Last: Thanks, it worked, but can I ask what the difference is between sync a... (by Parkournerd)
Inserting into a string
 
How does one change the string "6013456" to "601-3456"?
[4 replies] Last: It's 3, but thanks =). First help from this forum. =) (by Parkournerd)
Array reading problem
 
So, i have a file with a lot of information and then colums of number wich is what i'm intersted in, something like this: # =================================...
[2 replies] Last: Found my error, the sscanf was fine what is wrong is the printf, it p... (by vtergolina)
The stack
 
Hi, I'm new to these forums! I need help understanding "The Stack" I understand its like a series of cubbyholes where 1 in is the first out bu...
[5 replies] Last: That explains 'a stack', he is asking about knowing 'the stack'. F... (by Intrexa)
by lik00
Tic Tac Toe
 
I needed to write a tictactoe game for class and hit some snags. Don't worry, the assignment was all ready turne in, but I wanted to get some answers for myself...
[2 replies] Last: Hello, I am a student at UAT and one of my assignments is to provide s... (by geisselvongott)
by pirooz
please help me, extract email from txt file
 
the following C++ program is code for extracting email addresses from an external text file. i have it adding numberOfPeriods+1 then i said only cout if numberO...
[3 replies] Last: ok im sorry fixed.. (by pirooz)
Wrong with Vector
 
Hi guys! Can anyone tell me what is wrong with the following program.....it supposed to be a program where you can input a chosen amount of players and then ...
[1 reply] : think about what the vector holds and what your setPlayer function ret... (by quirkyusername)
*int var Vs. int *var
 
I'm not sure how many articles there have been about this in particular, but I feel like this is something which should be touched upon regardless. I have no...
[4 replies] Last: While the first should be a compiler error, the second isn't particula... (by moorecm)
Coding for GUI different??
 
Hi there, I started learning C++ a while back. I was just wondering if coding C++ using for a program with a GUI will be different. If so, is it a must to start...
[1 reply] : It is different, yes. I can only say about windows programming, thoug... (by webJose)
C++ program not running correctly.
 
This is my program in it's full extent, everything works fine until the second time I have entered my data, when I press enter at that point the program immedia...
[2 replies] Last: I am pretty much following this guide, in particular there's this exam... (by Genemos)
Please help to understand why Typecasting base to derived works.!!!
 
when we explicit typecaste the base to derived, it is working, as understand the base object passed has no details of the derived class, then how can the der...
[7 replies] Last: I wouldn't count on it. Just in case that lacks emphasis, try this: s... (by hamsterman)
"Project8.exe has stopped working"
 
I keep on getting error messages at the end of my program, can anyone help check for errors? #include <iostream> #include <stdio.h> #include <string.h> ...
[3 replies] Last: If you look up those functions (with the extra n), you'll notice that ... (by webJose)
by Preo32
Help displaying number before .txt file
 
I am making a program that shows the contents of the .txt file when asked for. My program does everything correctly, but I need to have the line number followed...
[1 reply] : Hopefully this is not too much (or too little), but this worked okay f... (by Audie)
Need help understanding overloaded functions
 
I am a beginner and was using the 'Teach Yourself C++ in 24 Hours' Book. I couldnt understand how overloaded functions worked. Could someone explain by providin...
[4 replies] Last: my apologies, I'm a bit of a newbie myself haha (by Jesus805)
Offset / Dereference question regarding arrays
 
Hello I have a brief question regarding arrays and the operator. I understood that "Returns a reference to the element located n elements ahead of the elem...
[6 replies] Last: Out of bounds causes undefined behaviour Undefined behaviour is undefi... (by ne555)
So Any Questions?? Me Again Sir.
 
Hi Guys I know how to open and use a text file but what if i want to make it work that a .exe File? I mean what can i do? ...
[10 replies] Last: sorry but i can't speak english very well and sometimes i live many pr... (by closed account 9wX36Up4)
by Nelli
Simple nested if problem Please help
 
Thank you in advanced for helping me with this question. I have pasted my code which is obviously wrong so please anyone that can help with this? required da...
[3 replies] Last: Of course is not the only problem. I gave you the link so you can pro... (by webJose)
CONSTANT/IF converstions help!!!!
 
I am very new to this and am taking classes online and this is my assignment, I'm not trying to cheat cuz below you see i have tried it myself and i have also ...
[3 replies] Last: ok thank you all ^^ so much (by hatsumi141)
init of static var
 
I discovered the following. The conditional assignment following the declaration does never have effect: int static errx = (CorP == CALL ? 0 : errx); ...
[9 replies] Last: >> I believe you meant to say this at one point: "Thanks for trying to... (by paolopiace)
Is first character in a string numeric?
 
In looking online I see that the isdigit function under <cctype> can test whether or not a character is a digit. Can this function check if the first charact...
[3 replies] Last: Yes. Pass to the isdigit() function the first character of the string... (by webJose)
July 2011 Pages: 1... 2223242526... 54
  Archived months: [jun2011] [aug2011]

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