Beginners - September 2010 (Page 22)

by airowe
Redefinition/Indirection Error Message
 
I'm getting this error message: stringManipulation.cpp(178) : error C2372: 's1' : redefinition; different types of indirection when I try to set a point...
[6 replies] Last: I changed code. Thanks Disch. (by airowe)
Hi everyone, I'm new and I have a loop problem.
 
First off hi everyone. I was referred to this badass site by a fellow CS major. I am having trouble with my do-while loop and its making my program hang off ...
[1 reply] : Wow,,,,,,,,I am a total idiot. I forgot to add another command to g... (by IceThatJaw)
what statement will get this to work
 
i have built a timer setting in my player class each does the job they need to player.SetTimer() has set the starting time player.LoseTimer() subtracts...
[3 replies] Last: final itself is declared as a bool (by pathios)
Expected ',' or ';' Before '{' Token
 
Being a beginning (and when I say beginning, I mean that this is my first program apart from the little "Hello World" ones) C++ programmer, theirs probably a v...
[9 replies] Last: @Disch: Eh. It's fine. @Urist: To use pointers, you decide that you... (by Albatross)
WNDCLASS object.
 
WNDCLASS wc = { }; I see that a WNDCLASS object is being created and it is being named "wc". What I need to find out is what does "= { };" doing to the item ...
[1 reply] : If this is the Windows API, I suggest you try something else. That API... (by Albatross)
CLASS_NAME[]
 
const wchar_t CLASS_NAME = L"Sample Window Class"; Why is CLASS_NAME there and what is it doing? Thank you, Sep
[1 reply] : That would be the name of an array of wchar_ts. The indicates an arr... (by Albatross)
Can not understand why compiler don't detect an error;
 
Hi) Can someone help me with one problem?) In my project there are two files: cT.h (file header of some class cT) and main.cpp; The code of these files shown ...
[4 replies] Last: never mind I got it now its because he only declared the constructor e... (by wtf)
hiding a typed string
 
I want to hide a string as someone inputs it... like a password is hidden to login to most places... is this possible... any info on this would be helpfull.. th...
[2 replies] Last: thanks alot for the help!! (by one3five)
passing a matrix reference to an object
 
Hello! I have two classes: class class1 { int **matrix; int nrow, ncol; }; and class class2 { int **matrix; int nrow, ncol; public: vo...
[1 reply] : The most simple way would be class1 a; class2 b; b.matrix = new in... (by hamsterman)
by ChrisC
Trying to print 10 numbers per line
 
Hello everyone! I am a complete programming noob and am looking for a little help. I've written two functions one to read an array and one to print the array. ...
[3 replies] Last: Man how stupid of me. I've been looking at this too long...I didn't ev... (by ChrisC)
Using assignment operator +=
 
I have been working on an invoicing program for homework that must use the += operator. I have a function void GetFee() { grandtotal+=totalcharge; } ...
[7 replies] Last: Normally you make such functions like this: int GetFee(int grandto... (by JoR)
converting bits to bytes to kilobytes with mod
 
I was recently enrolled in CS115 at university. We work on problem solving with c++. I have code that I have work on for many hours. It display how many kilo...
[2 replies] Last: I am very sorry to waste your time thank you very much. (by pbmichel)
exercise
 
I am a beginner and I try to solve some exercises but I've got blocked. I know that is easy but anyone can help me? The program should read in values until a ...
[11 replies] Last: No.... read my posts (all of them) again. You did something completely... (by Albatross)
by redhat
recursive function
 
Hi . how can compute the sum of integer number in an array with recursive function.
[5 replies] Last: Try to avoid the stack overflow. (by ne555)
felow up class project
 
I have this project code i have to complete,but, I'm stuck, it has to display a table this is the description(this program analyzes the data from temperature se...
[no replies]
Having issues reading in from a file
 
Currently I'm working on a school assignment were I must build an application that can be used to make simple databases and store them on a file. The program ha...
[3 replies] Last: while(true) { IOFile.read( ( char * ) &temp, sizeof( Person ) )... (by m4ster r0shi)
Can someone check my solution?
 
Problem : Write a problem that asks a user to enter a number of seconds. The program will then use the entered number to convert it to Days, Hours, Minutes and ...
[1 reply] : Yes you did edit: a tip: having two cin.get()s is kind of silly. I... (by hamsterman)
Vector problems, getting and setting values.
 
Hi, I'm new here and new at c++ but I hope someone has time to help. I'm trying to get two values from specific places in a vector, based on a position in an...
[2 replies] Last: It works!! Thank you so much :) (a is an int) Any tip on replacing... (by chakaal)
by juvan
Writing to char [][]
 
Hi, I have a new frustration on my hands. I'm trying to have a 2D array for i.e. char cBuf = {0}; , now I assume, that I have a block of 1000 cBufs, and e...
[2 replies] Last: You have to use strcpy: strcpy(cBuf ,"text"); // copy "text" to cBuf... (by Null)
by Citis
8 bit number
 
Is there a 8-bit-size numberic data type? By ''numberic data type'' I mean that I can use this data type in numerical expressions like (a+2)^b or int i=5*a ....
[5 replies] Last: Thank you! (by Citis)
September 2010 Pages: 1... 2021222324... 32
  Archived months: [aug2010] [oct2010]

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