Beginners - May 2011 (Page 42)

char words.
 
Hello this is my code #include <iostream> char x; using namespace std; int main() { cout << "sEleverna\n"; cin >> x; if ( x == (char)'subje...
[2 replies] Last: Thanks alot! (by Love236)
Project Ideas?
 
I have taken C++ programming class covering basics/fundamentals from input/output , looping, functions/arguments, arrays, sorting and searching, dyn allocating ...
[1 reply] : How about a program that predicts the tasks that need to be taken to s... (by webJose)
by ph5
Problem with Vector
 
Hi, I'm having a problem returning values from a vector. My program is simple, it reads lines of text from a file and stores it a vector. Everything appears ...
[6 replies] Last: Finally, don't write: ifstream dbf; dbf.open("D:\\department... (by kbw)
Read and Write in Text File Using TURBO C++
 
hello guys.. i just wanna ask how to Read and write text file using a turbo c++ compiler... the dos command version.. i know how to read and write in VB c++ ...
[3 replies] Last: What errors does it give? (by hamsterman)
by ammama
search engine
 
We are new to programming in C++. With no previous programming experience in any other language and, we have this class project in which we need to make a mp3 s...
[9 replies] Last: okies..thank you very much (by ammama)
URGENT: False undeclared identifiers?
 
Here I am, working on a project for C++ and I am almost finished, but for some reason, one single line out of the entire code apparently decided to give me the ...
[6 replies] Last: I'm at a loss - maybe you need to post the surrounding code? Does it c... (by kfmfe04)
by Drue
Password (1,2)
 
I've made a password program. There's two people registered on it, another guy and me. I have the program running full screen when the computer starts up. It...
[30 replies] Last: I'm surprised Duoas hasn't burned you for this; Try to refrain from us... (by desoxena)
Corrupted stack error
 
Hey guys i have to write 50000 words randomly in a text file... so I wrote this code : #include <iostream> #include <cstdlib> #include <fstream> using name...
[4 replies] Last: Yes, if you do your math properly. Ask yourself what does rand()%4 + ... (by kfmfe04)
Vectors
 
So i am messing with c++ learning some stuff and testing some stuff and i got few questions about vectors. I will explain what i understand and if i am wrong ...
[5 replies] Last: Sorry i mis type it's atexit(atEnd1); i have no idea what does that th... (by jimmy5023)
Converting a string variable to a string of hex
 
Hi Im trying to encode a string to a hex string to later use as a URL to navigate a web page, but first I will need to convert my string variable to a string of...
[4 replies] Last: @jsmith sorry for not understanding what you wrote earlier, that cod... (by maxta85)
by Karnee
Removing a Member of a Csprite List
 
What I am trying to do is to make a member of the CSprite list in a wall vanish or disappear when it ishit by a ball. I have latched onto the .clear in the hop...
[no replies]
Homework Help
 
I know how you guys detest people asking homework questions so I apologize in advance if I offend anyone! I just need someone to take a look at my project and p...
[6 replies] Last: I knew I was missing something beteen my function variable and my cal... (by kfmfe04)
read values in a file into an array
 
I'm a student taking an intro C++ course. For a project, I must read values in a file into an array, the file looks like this: 12 56 78.1 80 10 56 78 1 32...
[12 replies] Last: There are many problems with your code as is: 1. Lines 37-38 is a rep... (by kfmfe04)
Overloading << operator
 
In my ListType.h file have ... public: ... template<class U> friend std::ostream& operator<< (std::ostream&, const ListType<U>&); ... template<clas...
[5 replies] Last: I used whatever comes with VC++ (some M$ compiler). Do try different c... (by hamsterman)
Text File(2)
 
Okay, so I have a quick question about text files. When making one ( myfile.open ("textfile.txt") ) how do I make it possible to make multiple copies? As in, wh...
[9 replies] Last: int mind string Fucked mind == Fucked !!Error!! No, I'm just kidd... (by Shay9999)
Advanced Line Skipping
 
Hey guys, i got a nice task. I've got it figured out pretty much, but i already know that this approach is so cumbersome that i won't even post it. There mus...
[7 replies] Last: Well it look's like you're sorted then. Hope I helped :) (by anonymous23323124)
char to int
 
hi guys is there a function for convert char to int??? for example '1' to 1 thanks a lot
[3 replies] Last: thank you very much (by CsqHossein)
Pointers to wifstream
 
I'm handling pointers, and can't access some member functions: class Class { void readFromFile(wifstream* file) { // this works... ...
[1 reply] : either do like this: (*file).good() or like this file->good() ... (by writetonsharma)
Structures
 
I'm having trouble understanding why this will not compile. It is very simple but I can't seem to see whats wrong. #include<iostream> using namespace std; ...
[8 replies] Last: these c library functions don't check for array bounds and hence its ... (by writetonsharma)
how to compile source code as an object in dev c++
 
I have this code need to be compiled in dev c++ as an object to be linked against other code later. It's just a bounch of classes and void function. It doesn'...
[1 reply] : You include the relevant files into the project to be compiled at runt... (by GodPyro)
May 2011 Pages: 1... 4041424344... 48
  Archived months: [apr2011] [jun2011]

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