2,839 Posted Topics

Member Avatar for steven woodman

They're not going to run it on full power today, so my guess is that we all live to see another day. It's a great experiment, I'm very interested in what results may come out of it.

Member Avatar for GrimJack
0
192
Member Avatar for inim38
Member Avatar for inim38
0
120
Member Avatar for makubexiii

[QUOTE=makubexiii;688013]how can you make program using a linked list that displays your outputs in ascending alphabetical order?[/QUOTE] With a computer, keyboard, monitor, mouse (optional), an OS and some software. You'll probably need your eyes, brains, arm, hand etc too. In other words: Try something yourself first and come back with …

Member Avatar for makubexiii
0
1K
Member Avatar for MAD_DOG
Re: C

[QUOTE=cutedipti;689648] To learn these languages well you just need to take maximum of 2-3 months only[/QUOTE] And since this thread is more then six (!) years old, the OP could have learned the language by now don't you think?

Member Avatar for Nick Evan
0
2K
Member Avatar for Sarav01

[QUOTE=Sarav01;688900] i read that in a book and worked on it. .[/QUOTE] Problem is that you didn't ask any specific question or posted code that proves you've actually put some effort in it. So what do you want to know, what have you done already and where are you stuck?

Member Avatar for Sarav01
0
296
Member Avatar for Nemoticchigga

One option is something like: [code=c] float in = 131.14567f; int left = (int)in; float right = left - in;[/code]

Member Avatar for ArkM
0
118
Member Avatar for mancode1007

Here's a [URL="http://www.functionx.com/cpp/examples/passargs.htm"]tutorial[/URL] Replace every [ICODE]void main()[/ICODE] from the tutorial with [ICODE]int main()[/ICODE]

Member Avatar for Majestics
0
102
Member Avatar for Dannyo329

Something like this should compile: [code=TurboC] int a = getch(); if (a == '\n') cout << "enter"; [/code] But why do you think getch() is better then cin? Getch() is outdated and non-standard, so if you use it on a modern compiler, you'll get a compiler error. Besides, comparing getch() …

Member Avatar for Dannyo329
0
659
Member Avatar for aussie_chick

Try making something yourself first, and ask questions about the code. We don't give away homework here. I can give you a few tips: [URL="http://www.functionx.com/cpp/Lesson12.htm"](2d) arrays[/URL] [URL="http://www.cprogramming.com/tutorial/lesson3.html"]loops[/URL] [URL="http://www.augustcouncil.com/~tgibson/tutorial/iotips.html"]user input[/URL] Good luck!

Member Avatar for aussie_chick
0
3K
Member Avatar for opposition

Your nodes don't have a link 'previous' (singly-linked), so as far as I can see, you'll have to store all the data in some sort of container (a vector for example, or another linked list :P ) and print that out in reverse order.

Member Avatar for opposition
0
86
Member Avatar for iamthwee

If everyone is going to give iamthwee free code, I might as well give my 2 cents :D I've made some assumptions because your question wasn't complete: - I went for excel, where a CSV is separated by ';' instead of ',' - an empty line is a '\n' - …

Member Avatar for iamthwee
0
261
Member Avatar for FTProtocol

[QUOTE=FTProtocol;681127]i... and molecular structure of the central processing unit ... [/QUOTE] Perhaps you should use [URL="http://lhc2008.web.cern.ch/lhc2008/"]this[/URL]

Member Avatar for vmanes
-2
219
Member Avatar for jhonnyboy

[URL="http://www.cprogramming.com/tutorial/lesson5.html"]Here's[/URL] a small tutorial on the switch statement

Member Avatar for Nick Evan
0
144
Member Avatar for Jayeeta Mitra
Re: List

[QUOTE=Narue;686976]You know what [B]I[/B] need urgently? [..][/QUOTE] I urgently need to win the lottery, cld you help me plzzzz?! LOlz :icon_rolleyes:

Member Avatar for Nick Evan
0
85
Member Avatar for kcpatron

[QUOTE=kcpatron;687446]good day, i rily nid help on something....[/quote] If you're looking to learn proper English, you're on the wrong forum. [QUOTE=kcpatron;687446] its about gotoxy in turbo c... [/quote] Aha [QUOTE=kcpatron;687446] 1st of all, can u use gotoxy in turbo c? (c++ 6.0) [/quote] Yes [QUOTE=kcpatron;687446] 2nd, if u can... can …

Member Avatar for Ancient Dragon
0
111
Member Avatar for haveaclick

[QUOTE=haveaclick;687411] i want the code for reversing a string [/quote] You didn't say the magic word... :) But even if you did: we don't give away code for your homework. You need to put in some [URL="http://www.daniweb.com/forums/announcement8-2.html"]effort [/URL]first. But to help you on your way: Do you know how to …

Member Avatar for Nick Evan
0
91
Member Avatar for Ezzaral
Member Avatar for Ezzaral
0
198
Member Avatar for amt_muk
Member Avatar for amt_muk
0
6K
Member Avatar for PalomoBlanco

[QUOTE=Ene Uran;677634]The "antivirus vista 2009" comes in from visiting porno sites...[/QUOTE] Sounds like you're familiar with it? :D Anyway: NOD has a online-scan that detects the virus according to their database.

Member Avatar for R0bb0b
0
203
Member Avatar for mikedd

The following example-code will 'convert' an int into a char [code=c] int number = 97; //97 is the ascii value of 'a' char character = (char)number; // "convert" it printf("%c", character); [/code] A char and an int are both numbers, they just differ in the way us humans read them …

Member Avatar for Salem
-1
163
Member Avatar for flipjoebanana

How about using a shell script to start GDB in a loop? Redirect the output to a file. [code=ShellScript] for (( i = 0 ; i <= 10; i++ )) do gdb yourfile > outputfile done [/code]

Member Avatar for flipjoebanana
0
89
Member Avatar for Mehwish Shaikh

[QUOTE=Mehwish Shaikh;683492]Please Be Hurry.... I'm looking forward for your kind help....[/QUOTE] It may be [URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]urgent[/URL] to you, but it isn't to us :) [quote=Mehwish Shaikh;683492] but im confused how to use those methods in MAIN() function after making Objects of Class-tree. [/quote] You've forgotten to create a node that you …

Member Avatar for Nick Evan
0
359
Member Avatar for olsoul_41

[QUOTE=olsoul_41;684349]can u make me one? pls[/QUOTE] Yes I can. But the question is: can [I]you[/I]? How about [URL="http://www.google.nl/search?hl=nl&q=srand&btnG=Google+zoeken&meta="]googling [/URL]for srand()/rand() ?

Member Avatar for Narue
0
138
Member Avatar for basukinjal
Member Avatar for Alex Edwards

[QUOTE=Narue;684364] >Try this macro That still won't work as the construction is illegal. [/quote] Would you mind explaining why this is illegal? I'm probably wrong but it looks fine to me

Member Avatar for Narue
0
3K
Member Avatar for amrith92

[QUOTE=amrith92;684102] [CODE] read.open(filename_user.c_str(), ios::in); while(getline(read, linecount, '\n')) { ++lc; } read.clear();//clear memory read.close(); read.open(filename_user.c_str(), ios::in); while(getline(read, lines, '\n')) { cout << lines << "\n\n\n"; } cout << "\n\n\t\t" << lc; [/code] [/QUOTE] [I]If[/I] this code were to work at all, it would display the cout line as many times as …

Member Avatar for amrith92
1
211
Member Avatar for Kadence

How about using threads? One thread for each file. That way you wouldn't have to open and close each file each time you need to read it, so you wouldn't have to start reading from the beginning.

Member Avatar for Kadence
0
820
Member Avatar for welles

Am I missing something, or are you looking for some as simple (and ugly) as this: [code=c] #define debug2 printf int main() { debug2("testing %d,%d,%d", 1,2,3); return 0; }[/code] output: [code]Testing 1,2,3[/code]

Member Avatar for Salem
0
193
Member Avatar for mhil_joy

[QUOTE=mhil_joy;683642]if cannot work please help me..[/QUOTE] That's a syntax error , it should be: [code=cplusplus] if (!work) { HelpMe("please"); }[/code] Now what is your question? Also learn to use c[URL="http://www.daniweb.com/forums/misc-explaincode.html"]ode-tags[/URL]!!

Member Avatar for Nick Evan
-1
109
Member Avatar for J-son

> and I don't understand this step too: for (i = 0;i <= 10;i++) { a[i] = i; } > what does it mean? THANKS. It initializes the array with the values 1-10. It's a loop. Every time the loop loops, one element of the array will receive a value. …

Member Avatar for J-son
0
92
Member Avatar for chern4ever

Narue has dedicated a [URL="http://www.daniweb.com/forums/thread90228.html"]whole thread[/URL] to this problem. It's worth the read. but the simple solution would be: [code=cplusplus] cin.ignore(); cin.get(); [/code]

Member Avatar for Nick Evan
0
93
Member Avatar for chenzhp

I'm suprised that your compiler doesn't also complain about the [ICODE]int [/ICODE]declaration. It should be like this: [code=cpp] class Example { public: static const int versize = 20; }; [/code] To use static with doubles, you [I]could [/I]try something like this: [code=cpp] class Example { public: static inline double something() …

Member Avatar for chenzhp
0
207
Member Avatar for monkey_king

If I don't need negative numbers, I always declare them unsigned. In theory they should be marginally faster to process, but I use to give them to indicate that a number will never be negative. It improves the readability of the code. And about goto's (question #5 in post #1), …

Member Avatar for Narue
0
151
Member Avatar for fsemilla
Member Avatar for fsemilla
0
117
Member Avatar for OmniX

even with office 2008, you still can't write xls files without giving microsoft a sack of money, so csv would be the way to go. The thread you're referring to, actually has the [URL="http://www.daniweb.com/forums/post505055-12.html"]writing [/URL]part in it that you need

Member Avatar for l4z3r
0
252
Member Avatar for BattlingMaxo

Google is your friend: [URL="http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library"]mfc[/URL] [URL="http://msdn.microsoft.com/en-us/library/feh4ww6k(VS.71).aspx"]Resource Editor[/URL] [URL="http://msdn.microsoft.com/en-us/library/afzk3475.aspx"]Macro assembler[/URL]

Member Avatar for msk88
0
154
Member Avatar for Ene Uran

[QUOTE=GrimJack;677333]I was pleased when I hit 666.[/QUOTE] I still have the screenshot somewhere from [i]my[/i] 666th :D

Member Avatar for mackone
2
108
Member Avatar for ankit7

I think you mean: "How to make the console open in fullscreen-mode" ?? If yes: [code=cplusplus] HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_SHOWMAXIMIZED); [/code]

Member Avatar for dmanw100
0
136
Member Avatar for Salem

In the c++/c section 'someone' could add a piece of PHP code that checks if the post contains [icode]main([/icode]. If the post then doesn't contain any code-tags, show somekind of warning, or link to the "code tags explained" section. This could work for some -not too stupid- newbies and would …

Member Avatar for jasimp
1
193
Member Avatar for tortoiseman

You could use a vector for this. A vector is a sort of array that can change it's size on the fly. This is very useful when you don't know how much data you want to store. I've made you a small demo. Just compile and run it, you'll get …

Member Avatar for tortoiseman
0
91
Member Avatar for dise652

[QUOTE=sittas87;674579] error in sentence: ...Its round, like a [COLOR="Green"]Apple[/COLOR][/QUOTE] I guess everyone missed the joke in Jwentings post?

Member Avatar for sittas87
0
309
Member Avatar for hobonator912

If tried do describe your problem more clearly, I might be able to answer your question. What I understand is "I want one line of text replaced by a second line when I press a key" This could be done like this: [code=cpp] #include <windows.h> #include <iostream> using namespace std; …

Member Avatar for Nick Evan
0
242
Member Avatar for ehsan_op

[QUOTE=ehsan_op;674651] i wanna know if there is any problem with my CreatThread function or not ? [/QUOTE] I think you made I typo. It's [icode]Creat[b]e[/b]Thread[/icode] instead of [ICODE]CreatThread[/ICODE], so: no. You code doesn't compile unless you have made some sort of custom CreatThread() function. And without knowing what the TbsStart() …

Member Avatar for ehsan_op
0
146
Member Avatar for sittas87
Member Avatar for utmibnca2004

And you think that the orginal poster is still interested after 4 years? And still no [URL="http://www.daniweb.com/forums/announcement8-3.html"]code-tags[/URL]...

Member Avatar for mahlerfive
0
145
Member Avatar for mksakeesh
Member Avatar for Salem
0
159
Member Avatar for errorman

Sorry to tell you, but there are *a lot* of thing wrong with your code. I'll give a few examples: [ICODE]int main(void)[COLOR="red"];[/COLOR][/ICODE] What's that semicolon doing there? [ICODE] << [COLOR="red"]name [/COLOR]std::end[COLOR="red"]1[/COLOR];[/ICODE] What the hell is name std::end1;? [ICODE]if help == 1[/ICODE] you prob mean :[ICODE] if (help ==1)[/ICODE] [ICODE]system("pause")[/ICODE] missing …

Member Avatar for ArkM
0
91
Member Avatar for BattlingMaxo

[URL="http://en.wikipedia.org/wiki/Procedural_animation"]procedural animation[/URL] is a (programming)technique to allow for better animation then predefined animation would. while [URL="http://en.wikipedia.org/wiki/Tweening"]tweening [/URL]is more eye-candy / an effect.

Member Avatar for Nick Evan
0
187
Member Avatar for coderoobie

[QUOTE=coderoobie;675572]Wot a quick reply! Thanks jencas I 'l have a look at it. One more question, Can I sort a listbox containing strings? :icon_cool:[/QUOTE] How about loading all the strings to a vector and sorting that vector? example: [code=cplusplus] #include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; …

Member Avatar for jencas
0
160
Member Avatar for acejames1

[QUOTE=sittas87;674692] Im not a cracker but Ill use the stuff[/QUOTE] Sorry to hear that... You know, you can always [URL="http://www.rehab-international.org/dealing-with-crack-rehabilitation/"]get help[/URL]

Member Avatar for Alex Edwards
0
215

The End.