Beginners - April 2012 (Page 44)

file fails on second loop.
 
The code works well on the first loop, but after the loop, the opening of the file fails. It seems like a simple issue, but I have tried several things to no...
[1 reply] : It is running as it should for a loop and is terminated at line 59 on ... (by drhingle)
Help with external files.
 
Hello there. I can guarantee this question has been answered before, but I have spent the past two hours scouring this and many other forums trying to find a st...
[2 replies] Last: Thanks a lot! That did help quite a bit! I was able to calculate the s... (by PregoPuncher)
Program running slowly - please help find any inefficiencies
 
I'm practicing for the Google Code Jam on this problem: http://code.google.com/codejam/contest/433101/dashboard However, for the large test my program is excee...
[4 replies] Last: Initially, all the Snappers are in the OFF state, so only the first o... (by cire)
Looking for Reading material on op overloading
 
I have been studying operator overloading and I understand the - + () and a few others but I am stuck with the ->. I want to have full understanding of all of t...
[2 replies] Last: Number Number::operator+(Number num) { Number temp; ... (by jamie7823)
error LNK2019; linking issues
 
I am a beginner programmer working on an assignment for school. At least most of my code is correct, but I can't get it to run, so I can't start testing things ...
[3 replies] Last: You never call any of your get methods, so it's not surprising that th... (by Moschops)
by Krent
Segmentation error help
 
Hello, I am working on a project for my C++ class and i am almost finished but i keep getting a segmentation error. I know what segmentation error means but i d...
[2 replies] Last: Thank you so much! I finished it thanks to your help. It turns out i d... (by Krent)
Sum of Numbers
 
Hi again, everyone; I've got another question for you. I'm supposed to be creating a console program that prints the sum of the numbers between two number given...
[2 replies] Last: Worked like a charm; thank you for your help, vlad. (by xerinex)
by y4n
Arranging letters of a word, without upper/lowercase concern
 
Hi friends, Today I am asked to make a C++ app which is used to arrange letters of a word alphabetically. Example: 1.) Input agartala , output aaaagltr ...
[7 replies] Last: Thanks Moschops your code runs well. I forgot if struct should be lo... (by y4n)
Sorting an array
 
Hello, I am writing a program that measures the time that it takes to sort a large array. The sort algorithms that I have came directly from my programming boo...
[3 replies] Last: Wow! I considered that maybe it was just sorting really slowly, but I... (by Teerlinc)
resetting a string and an array for a loop
 
Im trying to allow the user to input a file into a char. example: char file ; cout << "what is your file?" cin >> file; and I am outputting info about the...
[7 replies] Last: So from what you mentioned, my char should be reset each time it is us... (by drhingle)
What is wrong with my selection sort?
 
Hello, could someone look over my selection sort function and let me know if my logic is messed up? I also get teh following error " cannot convert creative...
[1 reply] : void selectionSort(creative_type creativeArray , int length) { in... (by guestgulkan)
Replace character in txt file Problem.
 
Hi I have a problem to replace some specifics characters in a text file. First, I read the file and wanna replace some specific characters. Please see my code a...
[5 replies] Last: What ui uiho posted will get the string and replace all instances of "... (by NerdTastic)
how to leran c++ and were to read the book
 
good day masters in the house. I am a new face to this forum .i registered today. Pls, were do i open the book or page and start reading? I download beginers ...
[5 replies] Last: www.thenewboston.org (by Need4Sleep)
opening ifstream with char
 
The program runs, but it exits when I give it an ifstream file with a char variable entered by the user. Looks like I am doing it exactly like the text. Just...
[1 reply] : Any suggestion? Debug your code to find the problem. For example, ... (by Moschops)
by rya729
Basic encryption and strings
 
Hey, so i have been playing with trying to encrypt something in C++ but when i try to put my results into a string the string stays empty. I have tried to add l...
[no replies]
by adijo
Code not working
 
#include<iostream.h> #include<conio.h> #include<stdlib.h> class weather_report { int *dd; int *hightemp,*lowtemp,*amount_rain,*amount_snow; static in...
[12 replies] Last: I have one more doubt. In this program why is everything passed by ref... (by adijo)
Object based program
 
I am a database programmer by background. As part of my college program, I am studying c++. For some reason, I am not getting it. No matter how many books I rea...
[1 reply] : I don't know what C++ you're learned already, or the aim of your cours... (by andywestken)
y/n code
 
#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv ) { //have user enter students grades cout<<"Enter stude...
[1 reply] : while (cont ||'y'); Let's make this code a little easier to underst... (by Moschops)
by Lebron
c++ where is the problem please help :((
 
This function is supposed to write squares like. when you enter 3 +-+ | | +-+ or when you enter 5 +---+ | | | | | | +---+ I believe this code have lo...
[no replies]
SDL Sprite positioning
 
Hi everyone, I'm currently making a simple Fragger-type game using SDL and Box2D. At the moment, I'm currently trying to draw an explosion animation at ...
[10 replies] Last: Thanks BlackSheep. i finally sorted it out. What was happening was I w... (by commodorejim)
April 2012 Pages: 1... 4243444546... 66
  Archived months: [mar2012] [may2012]

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