Beginners - September 2011 (Page 26)

Help with beginner program
 
I am not going to try to hide the fact that this is school work. There are still problems with the code that I am ironing out but the most glaring is the fact ...
[2 replies] Last: Thank you for the reply. I know that I should have found it on my own... (by jbwright84)
Empty an array of characters.
 
if I have an array of characters. How can I empty this array of characters? I need to empty the array of characters in order to re-use it in the next tokens....
[2 replies] Last: You could iterate through every element of the array and set it to the... (by ascii)
by gh24
I'm New to C++ Please Help
 
Hey guys, My code is not working at all. I am trying to have the user run the code, input a matrix and then have it read back the inputted matrix and then g...
[10 replies] Last: double mat1 (double, double, double, double); This line defines the ... (by Mathhead200)
by jtap36
illegal character, unknown preprocessor directive 'i'
 
i have to make a program that asks the user to input the psi pressure and have an output based on the input value. i thought i had it f/3igu5-red out but i keep...
[8 replies] Last: @firedraco: Wow! To think that something like that slipped through... ... (by Mathhead200)
by m4wk
Palindrome Function!
 
Hey guys, so I have an assignment for my programming class and we are supposed to write a function "bool isPalindrome" to determine whether or not the file that...
[10 replies] Last: @m4wk thank you keineahnung! Here was the working function: You're ... (by keineahnung)
Homework help
 
Well I know it said not to ask about homework but I am soo lost at the moment. I am being asked to write a program that prompts the capacity, in gallons of a...
[10 replies] Last: using namespace std; is almost an oximoron, because in a way it defe... (by ascii)
LOOPING
 
hello guys!!! its very difficult to me on how to use looping.... using while and for... can u give me a technique in looping please... or some basic about loopi...
[4 replies] Last: 1. You need to ensure that you have an exit condition to the loop 2. T... (by Stewbond)
by codrgi
what is this doing?
 
BOOL varab = TRUE; if( m_List.size() > ( (varab) ? 13 : 12 ) ) Im really new to c++ and would appreciate if anyone could explain what this statement is do...
[2 replies] Last: (a)?(b):(c) is the same as if (a) then (b) else (c) ... (by Stewbond)
A function that reads from a specific point in a file?
 
I'm looking for a function that can read from a specified point in a file, preferably in <fstream>. Does anyone know of such a function? Here's an example of ...
[4 replies] Last: Alternatively, indata.ignore(numeric_limits<streamsize>::max(), '\n')... (by closed account DSLq5Di1)
Array Of Functions
 
I would like to know if their is a way to make an array of functions. like this array = {function1, function2, function 3} function1; would there be a wa...
[6 replies] Last: Here's how to declare an array of function pointers: int Function( ... (by closed account zb0S216C)
searching techniques
 
hi , i was just trying to develop an offline search engine, can u suggest any seaching technique (other than linear and binary search) for this purpose; thx in...
[2 replies] Last: Yeah, pretty much what hamsterman said. The key to efficiently searchi... (by helios)
Strlcat Problem: why strlcat does not work?
 
HI, I come across a strange problem when using strlcat, as follows: static int get_path(char *parent, char * file){ int parent_len = strlen(parent); ...
[3 replies] Last: That's what I said starting in the second paragraph. And that he write... (by hanst99)
Class Constructor Help
 
So I'm trying to wrap my head around classes. Here I have some loot objects that I want to represent in the aWeapon class. Their stats are set (nothing will cha...
[2 replies] Last: I knew it'd be something like that, thanks. (by WhiteWind)
How do i practice c++ on the go!
 
hi im 14 and i have an ipod touch and i have free periods at school,every time i come home from a long day of school i wanna practice c++ but im to tired and im...
[4 replies] Last: If I remember correctly, there's a gcc compiler available in cydia (it... (by ultifinitus)
Searching a word forward and backward (palindromes)
 
I need write a function that goes through a linked list and see if the words in the list are palindromes. So, I need to go through the letters in the word one w...
[4 replies] Last: Thanks hanst99, it seems much simplier in my head but I'll try to put ... (by skatingrocker17)
Bisection Method Problems
 
I am writing a code to implement the bisection method and have completed what I thought would work but am having problems. There are no errors when building but...
[4 replies] Last: double bisection(double a, double b); int main(){ //... return bi... (by ne555)
by acmcpp
Using sleep() to make program pause...
 
I'm working on a program (On a unix server via putty, g++ compiler) where I need to attach the time to several pieces of data but currently my program is giving...
[6 replies] Last: I'm glad you figured it out. It may be of benefit to learn the ins and... (by JMJAtlanta)
Finding Elements in Linked List
 
I'm having trouble with the 3rd if statement of my code if(select == 3). Here, if the user selects '3', then they should be able to search for students (given t...
[4 replies] Last: oh actually, i think i got it. thanks so much. and yeah, i'll work on ... (by anonadre)
a quick question about a header file
 
I am now reading the following header file: #ifndef PPP_H #define PPP_H #include xxx namespace yyy { class cBlockInfo; class cSuperMatrix ...
[8 replies] Last: hanst99, Thanks for your comments. Great point! You are right: next ... (by subjugater)
Words not colored when I type.
 
When I type out my words like #include they arnt turning blue that just stay black.
[8 replies] Last: [quote=Athar]I have the feeling that there's a contest of "who can pos... (by closed account 1vRz3TCk)
September 2011 Pages: 1... 2425262728... 48
  Archived months: [aug2011] [oct2011]

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