General C++ Programming - September 2011 (Page 16)

Issue getting information from line into array of structs
 
I will say up front this an assignment for my second C++ class. Basically I have to open a text file in the program and read each line that is in the following ...
[7 replies] Last: Well I was able to run it on a unix machine just fine after finding th... (by rkbruner)
by IloveC
Please help
 
I currently taking a C++ course and it is giving me difficulty. I was wondering if there is anyone who could help me with this example.I am supposed to create a...
[1 reply] : Show us what you've got so far so we can help. (by xander333)
How to get current address of last executed instruction
 
Recently, i was searching for a way to find out if the function was really inlined by the compiler. I thought that this approach could work: static inline res...
[12 replies] Last: No, the standard defines syntax and semantics. Optimization is part of... (by helios)
Memory leaks
 
I have an application written in c++ to call interface routines to pull out data of a certain format. Is was written in c++ 2003. I have a application written ...
[3 replies] Last: I do see the data coming out of the interface..... The data looks good... (by mjocasio)
Reading from a text file
 
How can I match a word with one in a text file Let's say I need to check if a file has the word "Hello" in it. How could I do that? I'd appreciate code...
[1 reply] : Well it's really up to you, you can do it lots of different ways, one ... (by avlagrath)
/tmp/cckHZMTJ.o: In function `main':
 
Not sure whats going on here. using Geany IDE on top of Linux Mint 11.04 Both main.cpp and RomantypeImp.cpp compile individually just fine. When I go to buil...
[4 replies] Last: I started the project in visual studio at school, but then tried to fi... (by estex198)
Access violation reading location
 
So Im using SDL to make a zombie survival game and Im getting a weird error It has to do with 2 files one where zombies spawn and one where they move. It is s...
[10 replies] Last: It seems that you're using p in multiple threads. It's also possible t... (by Athar)
[School]Stumped
 
I am stumped with this problem for my c++ class. We are supposed to have a function called stat that reads in the # of #'s in an array, the array itself, and 3 ...
[11 replies] Last: True, I wasn't feeling alright at the time. Sorry. (by hanst99)
Inserting a String(variable) into an address
 
Can you change an address by including a string(variable) within the address? For example, I'm writing a program that will access a webpage based on user inp...
[2 replies] Last: thanks (by paulmcco)
exceptions handling.
 
Hi, I need to write implement exceptions, that prints error message to the screen, that appropriate to the LibraryItem kind, Book or ReservedBook. what change...
[8 replies] Last: Note that you don't need to throw and catch in the same block: void ... (by hanst99)
Linked List
 
I have a class, say class MyClass{ int a; int b; MyClass(); MyClass(int a, int b); MyClass(int a); virtual ~MyClass(); } I have to create Linked List ...
[1 reply] : http://www.cplusplus.com/articles/DjGEy60M/ (by Athar)
mileage calculator help
 
Hello, In my opinion,it depends on the portion covered just before the problem.... Some ideas: 1.One can use arithmetic boolean,i.e,(condition)?:(do) Note:but ...
[2 replies] Last: Don't repost the same topic in a different forum when the old one isn'... (by Athar)
inheritance problem.
 
Hi, i have a problem when running a code like this: ba(11,"Title","Name"); is there a mistake with my code ? LibraryItem.h: #ifndef _LIBRARYITEM_H_ #...
[6 replies] Last: thnx guys, adding LibraryItem(cNum,_bookName,14) to the initializat... (by aymanbah)
by mithat
%s%d
 
Hi we have an array names which are as follows: True1_Meas1, True2_Meas2, True3_Meas3,..... we would like to read those names from a file which we store ...
[1 reply] : If this works anything like scanf you are trying to read into rvalues. (by hanst99)
[School] Linkedlist *pointers.
 
Good morning, I've a question about global pointers. At first, my assingment: We need to read a .txt and only pickout the words no other operators. (No pr...
[5 replies] Last: I found out how to use the pointers. Oke its not exactly what I attend... (by Leek007)
Compile error for non-inline member function of inner class of templatized class
 
I've got a template class B with an inner class A. Class A has a member function f that I want to return a reference to itself (i.e., a reference to an object ...
[3 replies] Last: $ g++ error.cpp error: need ‘typename’ before ‘B2<T>::A2’ bec... (by ne555)
C++ windows or linux
 
I need recommendations as whether to develop a C++ program for Windows or Linux. The program will be running on a server and will be accessed using IP. Server...
[1 reply] : There is no reason why you can't write your program to run on both Win... (by Galik)
Replacing Arrays with Vectors?
 
The program I written below is basically a menu system used to find out averages to a number of grades using arrays. I get how to use arrays, but now I would li...
[1 reply] : Not much to tell. vector<int> grades; //creates an initially empty v... (by Athar)
Functions (Reference Parameters)
 
Please go to this link : www.cp159.blogspot.com PLEASE DO NOT ANSWER ON THIS PAGE REPLY ON THE LINK Thanks
[no replies]
Nested dereference of char arrays
 
I'm working on a program to verify RAID 6 data stripes, which involves loading an entire chunk from each disk into a memory array, then looking up each byte in ...
[3 replies] Last: Technically, 'char' by itself can mean either 'signed char' or 'unsign... (by helios)
September 2011 Pages: 1... 1415161718... 31
  Archived months: [aug2011] [oct2011]

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