958 Posted Topics

Member Avatar for The Dude

66% Stupid questions, no references to Oden, Trolls, self-mutilated aliens, the psychology of an abomination after sitting in a psychward, or what would happen if one soloed Lydian Diminished into a Locrian in front of a child.

Member Avatar for jbennet
0
299
Member Avatar for naseerkhan861

I might have them, but: [quote]Collection of ciphers - $10,000 User license[s] - $200 per user Using a search engine - Priceless[/quote]

Member Avatar for MosaicFuneral
0
72
Member Avatar for zoner7
Member Avatar for zoner7
0
803
Member Avatar for daviddoria
Member Avatar for _adam_
0
1K
Member Avatar for Passiongamer25

What's the output of temp before you use the function? Any code to see how you're going about that?

Member Avatar for Passiongamer25
0
94
Member Avatar for LucyB

[QUOTE=LucyB;787779]Seems the quality of answers isn't too great at the moment? Perhaps a diagram or a link to one for us newbies?[/QUOTE] The quality of answers goes up as the quality of the question goes up. Generally requiring a full paragraph.

Member Avatar for Salem
0
91
Member Avatar for Liszt

Maybe as a DLL? But - what's so "secret and special" about your code, are you embarrassed by it? Even if you put your code in a DLL, make sure it's abstract enough for the user. Since no-one wants to route through several layers of classes, declaring objects to be …

Member Avatar for Liszt
0
86
Member Avatar for mahdiahmadirad

Why are you recursively looping a function like that? It's hard to follow. Also not sure why you're not using `int main()`, globals in that way, string.h, or idk this is way more complex than it needs to be...

Member Avatar for cikara21
0
802
Member Avatar for athlon32
Member Avatar for boomtoom
Member Avatar for TheBeast32
Member Avatar for anuroop0707
Member Avatar for Lerner
0
254
Member Avatar for venomxxl

You mean like the keyword static, to keep it from external linkage; or volatile to keep the compiler from messing with it? I'm thinking you're meaning static.

Member Avatar for venomxxl
0
141
Member Avatar for neoangin
Member Avatar for neoangin
0
152
Member Avatar for Liszt

[URL="http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx"]All here.[/URL] Just scroll to the end and read the table of requirements.

Member Avatar for MosaicFuneral
0
260
Member Avatar for Salem
Member Avatar for Salem
2
52
Member Avatar for mcamacho07

Read the rules, CODE TAGS. Do you know about loops, like: [code]int array[10]; /*populate*/ for(int i = 0; i < 10; i++) avrg += array[i]; arvrg /= 10;[/code] That code assumes everything is always ten.

Member Avatar for mcamacho07
0
147
Member Avatar for Corus
Member Avatar for clutchkiller

How about: [code]vector<string> blah; string temp; for(int i = 0; i < 52; i++) { some_random_string_generating_function(temp); blah.push_back(temp); } cout << blah[23] << endl;[/code]

Member Avatar for clutchkiller
0
90
Member Avatar for BigJermZ

When you uninstalled it, you removed the leftover file? You're using the current version? Installed it to the default directory? I tested it on two XP machines, and it would only work in the default, but fine in other directories on other OSes. If you already tried that, perhaps update …

Member Avatar for Stefano Mtangoo
0
157
Member Avatar for deviantrunner

Arrays have to be constant. Try vector<int>, or allocate the memory and delete it at the end. [code]int *an_array; /*input*/ an_array = new int [numb]; /*stuff*/ delete [] an_array;[/code]

Member Avatar for MosaicFuneral
0
106
Member Avatar for rock9449

You really should go with a summary loop. [code]int num[10], sum = 0; ... for(int i = 0; i < 10; i++) if(num[i] > 0) sum += num[i]; cout << "Sum: " << sum;[/code] Try the same for input. If a number is negative, shouldn't you find [icode]|num[i]|[/icode], for each …

Member Avatar for StuXYZ
0
110
Member Avatar for The Dude
Member Avatar for meabed

Optimizing Software in C++ [url]http://www.agner.org/optimize/optimizing_cpp.pdf[/url] Agner has a few other manuals, on his site too.

Member Avatar for Lisa1110
3
1K
Member Avatar for hebosh88
Member Avatar for seanhunt
-2
104
Member Avatar for sonygamer

Since we always now this is a square, you only need to allocate once. [url]http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.16[/url] Make sure you use the trys and catches, too.

Member Avatar for MosaicFuneral
0
640
Member Avatar for Aundrey

[QUOTE=1bennyd;781622]"10 letters and 10 numbers" - that's going to be a huge amount of combinations to sort through.[/QUOTE] 20![icode]2,432,902,008,176,640,000[/icode] First Google link of, "C++ Permutations" [url]http://www.bearcave.com/random_hacks/permute.html[/url] There seems to be plenty of permutation algorithms swimming around online.

Member Avatar for Nick Evan
0
142
Member Avatar for CPPRULZ

You compile and link .cpp files, not include it like a header. Two, repost with the indented version in CODE TAGS, so people can read it.

Member Avatar for Manutebecker
0
187
Member Avatar for arun_lisieux
Member Avatar for eedythh2

Try this link: [url]http://www.cplusplus.com/doc/tutorial/dynamic.html[/url] Then read all of the other tutorials, refer to their references or try Google.

Member Avatar for MosaicFuneral
0
103
Member Avatar for The Dude

[quote]Your home planet is: Glark Glark is a round, red planet roughly 25 million light years from Earth. It's covered in shrubbery and cocoa bean plants (so they make loads of choccie there) The inhabitants of Glark usually have quite short hair so they don't get it caught in the …

Member Avatar for zandiago
0
151
Member Avatar for gr8 icon

If you're so new, then why are you trying a text editor? Why not learn the basics first, or just Google one.

Member Avatar for death_oclock
-2
144
Member Avatar for FyerEgg

Why are you are you useing a C-string(const char *) for p? Actually this is a tad "weird," and over complicated(IMO).

Member Avatar for skatamatic
0
84
Member Avatar for Ancient Dragon
Member Avatar for sneekula
0
125
Member Avatar for Somali Rathore
Member Avatar for homeryansta

uhhmmm.... sentence is a single char. [icode]void func(sting &str) { bool alpha = true; getline(cin, str); while(alpha) { /*code*/ } }[/icode]

Member Avatar for homeryansta
0
67
Member Avatar for nitu_thakkar

@nitu: Do you know how to use any other bit-operators? @ajay: I believe you mean, computer. Regs are for brief usage, not storage.

Member Avatar for MosaicFuneral
0
142
Member Avatar for GURU1349

When a compiler says, "Missing/Expected semicolon/operator before whatever", is really an euphemism for the vague meme, "You're doing it wrong!"(not to be rude) You're missing the std namespace. [icode]std::cout << endl;[/icode], or after including your templates and classes, [icode]using namespace std;[/icode] which means you wouldn't have to use [icode]std::cout[/icode]. edit: …

Member Avatar for Freaky_Chris
0
105
Member Avatar for bobomicgruvins

First result from using Google, "C++ Permutations". [url]http://www.bearcave.com/random_hacks/permute.html[/url]

Member Avatar for Salem
0
228
Member Avatar for noodlecode

More books on varied programming subjects, and just general practice apps.

Member Avatar for MosaicFuneral
0
93
Member Avatar for aiyer
Member Avatar for kiranraj1992
Member Avatar for Freaky_Chris
0
96
Member Avatar for moaath

Here's the number one problem, the format! A generic skeleton: [code]#include <iostream> #include <cstdlib> int main() { string input; int results[2], operation; bool continue = true; srand(time(NULL)); while(continue) { getline(cin, input); /*do stuff*/ if(comparison is right) cout << "Correct."; else { /*Ask*/ } } return(0); }[/code] Lets review. One: Variable …

Member Avatar for MosaicFuneral
0
218
Member Avatar for dirnthelord

Windows API, [url]http://msdn.microsoft.com/en-us/library/aa446854(VS.85).aspx[/url], or?

Member Avatar for Nick Evan
0
122
Member Avatar for vishal_tulsiyan
Member Avatar for Nick Evan
0
93
Member Avatar for P.I.M.P

No. No-one will write code for you, unless you're their respectable employer, teacher, or project partner. First function is missing a semicolon. Why do you declare and define another function inside of a function? Why not use a container if you don't know how to use an array? Why are …

Member Avatar for VernonDozier
0
143
Member Avatar for kentaki

Except I doubt his authority, due to lack of English skills. And receiving an IP from admin; why should you be given that, Ron?

Member Avatar for iamthwee
-2
141
Member Avatar for massivefermion

There is no <vector.h>, just <vector> which includes all correct template headers in the bits directory. Did you install Code::Blocks right, and setup up the default compiler?

Member Avatar for VernonDozier
0
400
Member Avatar for Cyberbanana1

[url]http://www.relisoft.com/win32/index.htm[/url] Create a window, draw a graph.

Member Avatar for Cyberbanana1
0
93
Member Avatar for Bladtman242

The End.