Beginners - October 2012 (Page 29)

Problem with numbers.
 
Hi, I'm doing a computational chemistry course as part of my chemistry degree, and I essentially have 0 knowledge of programming. One of the tasks I have been s...
[9 replies] Last: Okay thanks everyone for being patient and trying to help me, I apprec... (by sidnake)
Object Lifetime
 
How would I create an object that has the lifetime of a global variable? I need this object to retains its spot in memory, but it must not be declared global. ...
[7 replies] Last: Pushing multiple pointers to class data members has little sense since... (by closed account zb0S216C)
Finding mode of int array
 
Ok, so I was breezing through my homework for my compy class when I came across a problem with finding the mode of an array. Here's the problem that was given: ...
[3 replies] Last: // The char* array is used only to initialize the strings array with... (by maeriden)
by sinnex
Problem with c++ code
 
dear forum members, as the title reads, i have got a problem with a c++ code i wrote. i get no errors when i compile it and the program does what i want but ...
[3 replies] Last: so am i not allowed to raise the array later on? That's right. C arr... (by maeriden)
array output
 
hello everybody! I got a very big problem on inputting nd displaying the arrays. As Im new to programming specially to this topic..this is the question nd the...
[2 replies] Last: Use code tags for ( int i = 0 ; i<array[no-1] ; i++ ) { cout << i <... (by maeriden)
String Variable
 
Hey folks, I'm new to C++ and taking a cource learning about it. I've been given learning material to learn about C++ and i'm not sure about something compar...
[8 replies] Last: The old C-style strings are best described exactly as they are; null-t... (by MrHutch)
by khal
Hashing
 
Hi, for a linear probing assuming its only int keys to be stored. Would the hash function be Val = (Val + i) % tablesize or Val = (keys + i) % tablesize?
[no replies]
Visual Studio 2010
 
I just started using VC10 and I am getting the following error, could anybody try to pop in with a fix? 1> consoleC++Test.cpp 1>c:\projects\programming\win...
[3 replies] Last: @bleepblop Looking at the jpg, I see you have the for loop as for (i... (by whitenite1)
by skarla
SDL easy help.
 
http://pastebin.com/FHdvFyGX here is the source that i have made. it works good.The problem is that when the player go up to obstacles nothing happens and h...
[11 replies] Last: Hmm it sounds logic,so what should change? (by skarla)
Whats wrong with my code 2?
 
So I was trying to pull a value from array num and use it in the function int addition and I think I have some punctuation errors, anyone want to further elabor...
[4 replies] Last: there are no errors while picking up a value for a and b from the arra... (by Joseph544310)
Big exercise ! help
 
Hi,look at this. Write a program that calculates a random number 1 through 100. The program then asks the user to guess the number. If the user guesses to...
[1 reply] : can anyone help? (by Joseph544310)
Help me draw a box, please.
 
I've spent some time researching how to draw a box with asterisks and have yet to come up with a solution. My problem is I can get my asterisks to either ve...
[1 reply] : change to do while loop . example #include<iostream> using namespac... (by BasicNewbie)
Why is it not showing the values
 
When i dereference the pointers, there is no value showing but when i don't dereference the pointers it shows the addresses. I don't understand why it wont show...
[1 reply] : Your program is invalid and I do not understand why you are using poin... (by vlad from moscow)
Simple recursion question
 
I have a small recursive function I am trying to follow, but I'm just not getting it. I know if I put in the number 36, it returns 5. I did some calculations ...
[2 replies] Last: Thanks! I think I've got it now. (by apeachaday)
this beggining of tic tac toe program, why it no update? (1,2)
 
does c++ hate me? im trying o make a tic tac toe game work, this is only the beggining but when i test it, no board updaty :( trying to understand why it wont ...
[32 replies] Last: well i hope to develop both problem solving AND communication skills..... (by devonrevenge)
im new to vectors, am i pushing bach the same thing i have created? (1,2)
 
im not sure if the objest i created with class namegenerator is the same one im popping on my vector, by hoping the same name will be the same object...is obvio...
[20 replies] Last: i like using animals cos i get error messages that make me laugh "call... (by devonrevenge)
how to fix?
 
i compiled my program and it says --> name lookup of 'v' changed for ISO 'for' scoping [-fpermissive]. what does it mean? and no matching function for call to ...
[2 replies] Last: thank you! :) (by avirusdetected)
Genesis rom scanner Update 1
 
Hello, brand new member here and looking for some advice and pointers I am working on a personal project, a sort of rom utility for emulation. Basically all th...
[13 replies] Last: It doesn't say. It just explains that the header begins 256 bytes into... (by pogrady)
pointers
 
I was asked to find out the output of the following program...but i think it is a wrong question...answer given says it would print 2,0 Can anyone please exp...
[2 replies] Last: The program has undefined behavior because of lines 7, 9, 10, and 11. ... (by helios)
Variables across files
 
Hey so I have another problem. As part of my game both the enemy and player roll dexterity at the start. This dexterity is later used to make a roll number. The...
[3 replies] Last: Ahh okay, thanks for that! (by KungFu97)
October 2012 Pages: 1... 2728293031... 84
  Archived months: [sep2012] [nov2012]

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