Beginners - April 2009 (Page 26)

rand()
 
Sorry if this is being ignorant but why has the rand() function not been changed? It's clearly not so random and I know that you can use srand() and seed the ra...
[5 replies] Last: Let's just say it will be a while because even once its released it wi... (by jsmith)
by omk
deleting a pointer crashes the program.
 
Hi, Im having some trouble with deleting pointers. The pointer which Im having trouble with is the one called: MyString* player_ptr. It seems to me that the po...
[3 replies] Last: ahhhh.... doh. Well, now I learned that! :) (by omk)
by Kanner
Initializing pointer location with a constant
 
I am creating a program for a DSP processor. I have a bunch of static addresses and registers which are required to read and write from. So, I would like to a...
[4 replies] Last: Thanks Duaos, that was it. (by Kanner)
Restarting computer
 
I've been learning c++ since september and all ive been doing is writing dumb programs that calculate interest and stuff like but now. Ive been so curious to fi...
[1 reply] : You may look for info at MSDN: http://msdn.microsoft.com/en-us/librar... (by Bazzy)
by dkaip
I just try to copy 2 wide chars to new string
 
I work on code blocks, the file is in utf8. When runs i take the problem. Program received signal SIGSEGV, Segmentation fault. wchar_t *s1(L"today is a bea...
[1 reply] : You are copying to an uninitialized pointer (s3). (by jsmith)
A problem
 
#include <iostream> #include <string> using namespace std; class Dates { public: Dates(); void askDate(int); private: string str ; }; Dates::Dat...
[3 replies] Last: private: string str ; and Dates::Dates() { str =... (by pet)
by Alecia
Assistance in writing program
 
Is there a way to get assistance from other members in writing a program that deals with stock control?
[13 replies] Last: Thats what you've asked it to do. if (ans=='y') will do the blocks t... (by Umz)
I can not write else if sentence in C programs
 
Hi all, I have encountered an problem that doubt me a lot, the problem is what you see below: I have write a little program as what you see below: ----...
[2 replies] Last: hi Duoas, you are right, and now the programs goes well, Thank U very ... (by danlley)
The Switch Statement
 
hi, im tryin to get a swtich statement equivalent for the following: if (letGrad == 'A') cout << "The numerical grade is between 90 and 100"; else if ...
[3 replies] Last: Thanks for your responses. My code was kinda lousy to start off with (... (by jayray23)
by sobi
Sequentially searching arrays in C
 
Hello,I posted a topic on this earlier.Got some tips that helped but need some more assistance.The problem is to create an array of 100 random integers in the r...
[1 reply] : Your random number generation is a hair off. I slapped the code tog... (by eker676)
by jzackt
names will not switch using bubble sort
 
Im trying to rank a class from least to greatest by average, but Im trying to switch the names along with them, but the names do not switch. Can someone help m...
[2 replies] Last: yea it works with numbers but i dont see why it cant work with strings... (by jzackt)
What is the code to press enter?
 
I'm writing a program and I want the input to automatically press enter after the keystroke. What is the code to do this? Thanks in advance
[5 replies] Last: http://www.gnu.org/software/libtool/manual/libc/Buffering-Concepts.htm... (by Duthomhas)
by Cdawg
Problem with NOT using an array
 
I'm not allowed to use an array for this code but I can't figure out how not to. I need the following code to work unlimited times until 999 is entered then ou...
[3 replies] Last: What exactly are you expected to do? If you need the user to input num... (by Gumbercules)
Simple guessing game, or a mistake?
 
I'm really new to programming. A matter of fact, I started today. My friend made a game like this in a batch, and I wanted to replicate it with programming. You...
[7 replies] Last: Remove this: #define NEWLINE = \n It is neither necessary nor ... (by seymore15074)
Movies: i am stuck not sure what to do
 
The program runs but i am stuck on the last part and this is what i am trying to do Sample Input and Output: Enter a movie name: Mummy II Enter its ticketi...
[8 replies] Last: i am trying to write a program that continues to accept a movie name (... (by webbywebb)
Command Line Calculator
 
Hi everyone, i just wanted some advice as to solve my assignment. i want to write command line calculator that accepts a formula from the user and respond wi...
[4 replies] Last: http://en.wikipedia.org/wiki/Reverse_Polish_notation (by eker676)
Services problem
 
Hi every one I wanted to try and make a service. But when I open the service template in visual studio 2008 an d build it, it all works fine. Now I install ...
[1 reply] : hi well after a long surch i found that this works... http://w... (by Precious roy)
by onnela
Too many parameters error
 
Hello, I am trying to compile my code but I found the next error: too many parameters error. I created a function called spwrite -> void spwrite(uint8_t x,u...
[6 replies] Last: what is the error meesage? right now the only thing i can think of tha... (by jaydr)
by wretch
static int vs. static function
 
There's something about static members I don't understand. Why can static members like int or double only be declared outside the class, not inside the class. ...
[4 replies] Last: Why is this a problem, anyway? I've seen several posts (and have made... (by wretch)
by muddi
How to determine the time taken for any function?
 
Hello, i have my project code, and i need to find out the time for the functions used in it, how do i do that? for example: my function is GSM(); and i ch...
[2 replies] Last: Thanks, that was useful. But still it shows a zero "0". my code ru... (by muddi)
April 2009 Pages: 1... 2425262728
  Archived months: [mar2009] [may2009]

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