General C++ Programming - June 2012 (Page 25)

program cannot find the directory. (1,2)
 
here is basically what my code is string c2 = "checkpoint2.txt"; string c3 = "checkpoint3.txt"; string c4 = "checkpoint4.txt"; string c5 = "checkpoint5...
[27 replies] Last: [quote=Invader2010]how do i change that? Use getline. Have you tried t... (by naraku9333)
How do i open a file in C++ (Windows Form Application)
 
i have used microsofts own code and all they did was confuse me and cause errors, have to restart now... can somone tell me how to open a file without a dialog ...
[11 replies] Last: [quote=Invader2010]c1075 c2059 c2238 errors, why? Have you looked up ... (by naraku9333)
Processing: Mouse Rotation
 
Hello everybody :D I have a question about Processing, which uses code similar to C++. I hope I came to the right place to ask this question. I was makin...
[3 replies] Last: Haha yeh I wonder if he could have imagined we would be using his tria... (by soranz)
help please
 
how to write a C++ program that find the smaller of two integers input (hint: use an if statement)
[13 replies] Last: Simply try the ? operator in a single command. var1>var2 ? var1 : ... (by amoreira)
C++ books for game designing(intermediate)
 
I've been programming with c++ for around 5-6 months now using the internet and a collection of books i've invested to further my learning. As i learned the tho...
[no replies]
by cj123
program
 
how do i create a program, guessing a number from 1 to 5 then use a switch statement, have the user input a number from 1 to 5 and give a statement for each val...
[1 reply] : I won't give the whole solution, but here's part of it. To randomly p... (by twistermonkey)
by GRDfzx
How to place files in archives?
 
How to place files in archives?
[5 replies] Last: LibArchive for Windows http://gnuwin32.sourceforge.net/packages/libarc... (by closed account 1vRz3TCk)
how to change the background of vc++ MFC form?
 
how to change the background of vc++ MFC form/dialog?
[1 reply] : You can capture the DC from the WPARAM of a WM_ERASEBKGND message, or ... (by Texan40)
question concerning vectors in for loop.
 
Hello I have a while loop it looks like this. for(int i=0;i<list.size();i++) { if(list =="question") { cout<<"derp"<<e...
[1 reply] : A list of size X has X items, located at list to list[X-1]. The prob... (by Gaminic)
need some suggestions from the experts
 
#include <iostream> using namespace std; int main() { int i, j, k,a; a=9; for (i=0; i<=a; i+=2) { ...
[6 replies] Last: There is an article on this site about console colours: http://www.cpl... (by eklavya sharma 2)
How to do this in c++, FILING QUESTION?
 
I have this data in a file Apples 80 Rice 100 Jam 95 Ketchup 200 Now what I want is that when user enters rice, then the program checks in this file, the...
[6 replies] Last: Okay I wrote the code myself, thanks a lot for the motivation. Had to ... (by szak1592)
how to capture output in vector form instead of printing it in C++
 
I have a function within a large project of the form given below (func is called 5 times within the call hierarchy in some Abc class) : void Test::func(std::s...
[1 reply] : Well, include the file vector and declare a simple vector of strings... (by shadow123)
by mar11
automating copy files
 
Assume you have in a folder the following .c files reference.c test.c test1.c test2.c ... testn.c You want to copy the content of reference.c in all...
[6 replies] Last: Damn, sry, my version is vor MS-DOS. (by shadow123)
Copy constructor not getting called when a function returns object
 
Hi, I studied that copy constructor will get called when a function returns object.But in my case it dint.I have attached the sample code below. Thanks in Adv...
[2 replies] Last: A constructor is only used when a new object is created. c =f1(); wi... (by Peter87)
by shoq
Graph edition - friend class or public methods?
 
Hello everyone. I'm writing a program basing on a graph structure. I need to create a module that can load a graph from a text file and edit the created grap...
[no replies]
vector expression templates, scalars and their scopes
 
hi there. trying to implement expression templates for lazy vector evaluation. all seems fine, until i try to operate on single values, like a * 5. below is a...
[7 replies] Last: thanks Cubbi .. i will (by bluecoder)
Somethings wrong...
 
So debugging my program,and this error shows up, along with many others for the different functions. "'easy' : local function definitions are illegal 1> ...
[9 replies] Last: Hope this helps // Comp070620121600.cpp : Defines the entry point fo... (by bluecoder)
Please help guys!
 
Hello, Ive been trying and trying for weeks to get a richtextbox to open a file and save its contents at the top of the file. Ive tryed mutliple methods now whi...
[1 reply] : You'll get a better response in the windows forum, or in a dedicated w... (by Moschops)
How to do Lexical analysis for c/c++ source file?
 
i have c++ code for Lexical analysis to get result of Expression/String as input and produces output as list of tokens that are: Total Identifier, Total Constan...
[no replies]
Looking for a tutor
 
Hi I am looking for a tutor for a C++ assignment. The assignment involves reading in a plain text file from the DOS prompt(any text file). After the file is rea...
[1 reply] : could you provide with an example text file and the expected XHTML fil... (by vkrishan)
June 2012 Pages: 1... 2324252627... 33
  Archived months: [may2012] [jul2012]

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