General C++ Programming - February 2011 (Page 2)

code optermisation
 
hi i was wondering if i could have some help in optimising this code i need to reduce the time it takes to search through an array of 1 million words against 85...
[6 replies] Last: thanks i am using dynamic cause the assignment says it has to be usual... (by angelofsloth)
by h9uest
CAPTCHA breaking
 
Hi all: Probably this is not so related with C++ since one can do the job with any other language. However, my experience with this forum is people are gener...
[1 reply] : To clarify: I don't want captcha systems like the reCaptcha, which ... (by h9uest)
Question regarding Enqueue, Dequeue
 
Hi Can anyone help me with my enqueue and dequeue, I am supposed to read from a file and insert into a listlist to do an enqueue and dequeue The text file sam...
[no replies]
overwriting integers from a function
 
i really need some helop here guys. heres the deal; i need the numbers re-entered in my bool function to overwrite the ones entered in the main function. t...
[2 replies] Last: that did it. thats alot! (by neverknownig)
by Cyraxz
Unputting decimals into an array then displaying them.
 
So i am putting some numbers into an array using a basic calculation and then checking to see if they were inputted correctly by displaying them, but they will ...
[6 replies] Last: Oh! and jimc is absolutely right in his second point also. What you w... (by Caligulaminus)
by cida
calculator
 
cout<<"pls can i use c++ language to write a functional calculator?;
[3 replies] Last: @alex1205: May I ask why you gave that to him... Since he didn... (by king214)
by fafner
binary conversion crash
 
I'm testing out Qt, and I've written a binary conversion widget. First my conversion algorithm was like this: QString output = ""; long val = decimal_in->tex...
[4 replies] Last: you can easily use itoa_ function for conversion,but it's not standar... (by alex1205)
C++ Star Pyramid
 
Good day again, now I give the simple program that will print out a STAR PYRAMID with 10 layer. Hope it will be a help for a beginner like me. Im using DEV...
[4 replies] Last: What more do you need. It wont compile on a C compiler, will it? This ... (by simeonz)
Iterator inside class template
 
Hello, I'm trying to declare an iterator to a list whose container type is a structure that I have declared inside of a template class. For some reason,...
[3 replies] Last: I typically use typename instead of class as I find that to be les... (by Disch)
math is breaking i think...
 
i am in a discrete struct class and a program i had to make works but also seem to get negative numbers and dont know why. i think the fractorial function is br...
[2 replies] Last: i closed and reopened it and now i am getting right answers... stupid ... (by kyle11778)
getString function problems
 
Hi evryone, i'm having the two errors below and the debug will not give the line where is the problem, can someone guide me in the right direction? thanks...
[3 replies] Last: the way you deal with dynamic arrays is wrong. it should be char* a... (by hamsterman)
Problem with #include w/ complicated file structure
 
So I'm working on a little computer game doodad, I'm a relative newbie at c++ so there's likely a solution to my problem using some sort of syntax I don't know....
[2 replies] Last: wow, thanks for the informative answer! (by zanielyene)
Source key lock, F2,F3,F1
 
Good the other day I passed this source that supposedly serves to lock the keys on the keyboard ( in this case only blocks F1) . The problem is that it does ...
[no replies]
by Amanda
only works if I include "&", but not suppose to.
 
Here is my beautiful WORKING code: This is a tester, sort of... #include <cstdlib> #include <iostream> #include "DynamicList.h" #include <time.h> u...
[5 replies] Last: It's hard to say what exactly your teacher intended. It is also hard t... (by simeonz)
reading in words from a file and making an array list
 
i am trying to put a list of 78 words onto an array of strings so that it can be checked the program works as in it copys the input file words on the array but ...
[4 replies] Last: my lecturer would kill me for a rookiie mistake. yeah usually i use vs... (by angelofsloth)
by DMEW
What is the best way to go about making a C++ server
 
i got a simple word game i made and want to make it work online so you can verse another player. Im a C guy and the idea i have so far is to write a server and ...
[4 replies] Last: thanks a lot guys. ill look into the windows sockets (by DMEW)
int *hh=I_1(x+1)
 
What does this mean exactly? Thanks
[5 replies] Last: I_1 is not a keyword, nor a standard library function. It could be fun... (by simeonz)
Singletons using smart pointers
 
Hey there, so I've been fiddling with singletons lately and tried to write one using smart pointers so I don't have to worry about them leaking. I've seen som...
[18 replies] Last: This, I think (tested it a bit) works: #include <boost/utility.hpp> ... (by simeonz)
C++ finding common factors of two integers
 
Gud day, Ive created a simple program that will print out the COMMON FACTORS of two numbers. Hope it helps you alot. Im using DEV C++ here is the source cod...
[no replies]
Early initialization of static local variables.
 
I had this posted as request for clarification in another thread, but it deserves a thread of its own, I think. The question is basically - under what circum...
[3 replies] Last: Thanks. The comments in the body of the costructor and function were s... (by simeonz)
February 2011 Pages: 1234... 25
  Archived months: [jan2011] [mar2011]

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