General C++ Programming - November 2011 (Page 23)

Need Help Reading A Text File!
 
I have made a method/function to read lines from a text file and stores them in one string until end of the file. Then the function returns the size of the stri...
[7 replies] Last: @Binary Thoughts Your code have something wrong: 1. youfunction return... (by cdlang)
Student Grade Structure
 
Hi, all. I'm given an assignment to create a student grade structure, and calculate the numeric grades and letter grades. The part I'm having trouble with i...
[no replies]
Can't get my bubble sort to work...
 
I'm needing my program to sort by last name, but I'm not seeming to get that at all. I'm not sure what I'm doing wrong or missing. Any help or pointers? #...
[no replies]
Weird Intergar Problem
 
I am trying to count files by date, a new file being generated every 5 minutes. I am using a long int becuase we are dealing with years possibly. my functio...
[no replies]
Can someone help me about Pointers ??
 
1. Write the following function that returns the product of the n values f(1),f(2),..., and f(n). int product(int (*f) (int), int n);
[3 replies] Last: If you don't solve this "problem" alone using some book or reference y... (by codekiddy)
by cea11b
File input/output on xcode
 
I'm not sure if anyone here uses xcode, but I was wondering when I make a file were does it store it at? I know on C++ express it goes to Documents>visual studi...
[7 replies] Last: I Use Xcode for some reason alot of people have this issue with Xcod... (by jackie)
by Thanz
What does mean scrn?
 
what is the propose of bold lines in this program? What does mean scrn? #include <iostream.h> #include <fstream.h> #include <stdlib.h> /* Declare the str...
[4 replies] Last: The code is using ofstream to write to the console (CON) -- or screen ... (by andywestken)
by phoemi
No syntax like: if(theInput IN {"A", "B", "F"}) { --- right?
 
Including any extra c++ standards, including but not limited to C++11, there's no quick way to see if a variable matches a value in a list, is there? I mean,...
[18 replies] Last: Mmm that is odd.. I'm not really sure what the problem could be with G... (by closed account DSLq5Di1)
Shortening a list.
 
Hello, I'm a little rusty on my c++. I'm using a c++ based program called root and am trying to analyze some data. I've created a script, but I'm trying to m...
[3 replies] Last: You could use std::sort() followed by std::unique() std::sort() http:... (by Galik)
Create Console
 
hello guys. i have one problem : i want to have "several console window" ! please help me how can i create serveral them in the same time. tnx alot <3
[18 replies] Last: I know you asking why not just put the job of program 2 into program 1... (by cppabuser)
strange error in every programme
 
#include <iostream> using namespace std ; void main (void ){ cout<<"hello"; } 1>------ Build started: Project: da, Configuration: Debug Win32 ------ ...
[2 replies] Last: I solve the problem but i face another error could u see whats wrong i... (by Hamza Abuzahra)
Help with ending Do While Loop
 
Okay, so this is my homework assignment. It uses a user input of the characters A,E,M, or Q for quit. The program runs perfectly with the exception of quiti...
[5 replies] Last: I see, I completely understand it now. Thank you very much. (by steverey8)
Operator Overloading is slow..
 
Hi, I'm a hobbyist 3D graphics programmer and I'm about to create a camera class to enable mouselook in my terrain generation project. I thought I'd do some tes...
[8 replies] Last: - You can't step through code during execution. - I don't think it ... (by Computergeek01)
by vivmen
LNK 2019 error
 
Hi all i am getting following error error LNK2019: unresolved external symbol "public: void __thiscall Test::funa(void)" (?funa@Test@@QAEXXZ) referenced ...
[2 replies] Last: Hi , Is there any other way .. ? to write the dll and calling the fun... (by bluecoder)
Problems printting pointer address
 
I have trhe following code, I am trying to print the pointer address using "cout" but is not working. I put both, printf and cout , so you people can see the...
[8 replies] Last: One could be getting the address of where the class itself starts, whi... (by cppabuser)
by Balrog
Using the SOIL library
 
I'm having the same problem that this person: http://www.gamedev.net/topic/590453-opengl-soil-library-not-compiling/ is having, but I didn't follow the explanat...
[7 replies] Last: Alright, I just understood what the issue was. I was trying to open a... (by Balrog)
by Netto
Help with BSTs
 
I did something wrong here, I suspect its in the insert function, but I can't seem to fix it, am I doing something wrong? I need to do the insert function nonre...
[1 reply] : Tried a different approach, it still crashes. edit: insert seems to w... (by Netto)
Redirection
 
hi i was wondering if there was a way to redirect someone back to the original if statement because as soon as they type in anything but the actual answer it wi...
[3 replies] Last: See http://www.cplusplus.com/doc/tutorial/control/#loops (by Athar)
by Yezman
Caesar Cipher. Read in from text file question.
 
So I have do decrypt a Caesar Cipher from a text file. It looks like this <2D or <24A or <-2F (go down -2, so up 2) or <4TA<2 And I am so lost. I have be...
[1 reply] : Read them as int and then increase the char by the int. For <24A //... (by Pravesh Koirala)
Creating a new console.
 
Hello, I came across this topic http://www.cplusplus.com/forum/lounge/17371/ But I'm having problem implementing it. The new console disappears as soon as...
[4 replies] Last: thanks!!! (by Pravesh Koirala)
November 2011 Pages: 1... 2122232425... 47
  Archived months: [oct2011] [dec2011]

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