Beginners - April 2014 (Page 32)

help please
 
i'm trying to read my complete file using eof() but i cant. can anyone tell me where am i making mistake ? #include <iostream> #include <string> #inclu...
[2 replies] Last: > ifstream infile; ¿which file are you trying to read? > using eof... (by ne555)
this
 
//Hello! I was studying classes with out tutorials and I had a doubt... //this is a pointer that is inside any non-static member function to refer to the intern...
[3 replies] Last: Yes, that's what I supposed: with ' *this ' we are returning the curre... (by closed account jvqpDjzh)
Deleting pointers
 
My teacher was saying I didn't have to delete my pointers in this case since I was in the main. But I'm trying to understand why my pointers wouldn't delete re...
[2 replies] Last: Thanks a bunch I didn't even notice what I did there. (by crutchlen)
by adrien
Pin Number modification
 
void edit_account() { string newname, accno, newic, enterpin; string account_number ,customer_name ,date_create ,ic ,pin ; int counter=0, choice,balance...
[2 replies] Last: Sorry, i think i posted the wrong code, however my senior helped me so... (by adrien)
by losnen
Function parameter error
 
The problem is the n, 15:24: error: 'n' undeclared here (not in a function) #include <stdio.h> void simetrica(int mat , int n); int main (voi...
[2 replies] Last: Also it's worth noting that the two occurrences of 'n' in the declara... (by Chervil)
Constructors
 
//Hello! I was studying a bit of overloading with our tutorials and I've just fronted a thing that I don't remember anymore well... //Here is the part where my...
[5 replies] Last: ok, thank you! (by closed account jvqpDjzh)
by allekj
array question
 
I am trying to fill my array with even numbers 2to30 in a 5x3 array. Im a newbie and am quite clueless. Looking for some help. Im doing something wrong but not ...
[1 reply] : Your code to output the array for (int r=0; r<=4; r=r+1) for (int c=0... (by Chervil)
File I/O, need help
 
i'm trying to create an Exam Results Information program that get its inputs from input.txt, calculate, and display the output to output.txt ..i encounter probl...
[2 replies] Last: yes i read in some website that i should use getline but i don't know ... (by kerolz94)
zip city
 
cant get it to where i type in zip it just skips it #include <iostream> #include <fstream> #include <string> #include <iomanip> #include <stdlib.h> ...
[no replies]
About output .csv file
 
Ex: I open a .csv file with contents: 1 | John | 123 2 | Peter | 142 and I want to add a field after them, like: 1 | John | 123 2 | P...
[9 replies] Last: Thank you, actually I'm doing a library manager program. That part is ... (by bathach95)
Error C2064, how to fix it?
 
I wrote long code, and there are a lot of void functions in it. there is only one int function, which finds smallest. I tried to compile it and error c2064 occu...
[4 replies] Last: @MiiNiPaa Thank you so much, I fixed it (by qwertyking)
by Subo93
Files
 
In labsht.txt I have save 1d222bb433gf445dfd448dfdfdf4 which I input using this program #include<iostream> #include<fstream> using namespace std ; int ...
[2 replies] Last: I don't want to try and read that... Sorry. Also this is the lounge so... (by TheBeardedQuack)
Struggle with Dynamic Arrays
 
This code works so far.. but when I increase "i" above 30 it crashes. Two diffrent error occur: - Heap damaged - acces violation What this code should do:...
[7 replies] Last: This is probably what you want: #include <iostream> using namespace... (by abhishekm71)
re: count duplicate words (count array, void function)
 
I have asked the same question a day ago, and I tried my best to fix the problem. but even though I put a lot of time in it, haven't got the correct answer. Ple...
[8 replies] Last: @coder777 here is the final code(correct) void duplicate(const strin... (by qwertyking)
by Jill
Lottery game using C programming
 
Write your question here. Write a program in C to play the “LOTTO GAME”. Note:- For the purpose of the presentation of this assignment, you must be able to...
[1 reply] : I would have thought your teacher would have explained this to you be... (by Codermik)
Coding help!
 
How would one initialize a variable with the following conditions? For the first 500 trillion grubnicks in sales, the company will be extended 20% of the amo...
[1 reply] : What are grubnicks? umm simple answer you cannot initialize a single... (by CodeGoggles)
Search an array rows and columns
 
I am having difficulty here im very new to C++, i started writing this code for a project to search an array for two names then display that row from the array ...
[7 replies] Last: http://www.computerscienceforeveryone.com/Course_1/Unit_8/Lesson_1/ H... (by CodeGoggles)
Dealing with files and strings
 
I am reading an html file one word at a time and inserting that word into a tree but I am trying to ignore the line of words if it starts with a tag or '<', the...
[2 replies] Last: I am searching 50 local HTML type files like this <DOC> <DOCNO> 1 </DO... (by closed account 2604izwU)
Char Detection
 
Hi there! I Apologize for any inconvenience, however I have a question of which I have been unable to solve. In the code below, I would like to include a case w...
[3 replies] Last: You would use the default case to do that like switch (bill1) de... (by CodeGoggles)
by iluv41
linear search function problem
 
nevermind
[1 reply] : 1. Why are you saving userID to different UserRecord than you do with ... (by JockX)
April 2014 Pages: 1... 3031323334... 67
  Archived months: [mar2014] [may2014]

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