2,839 Posted Topics

Member Avatar for j-green.10

"first" is declared as a std::string, so if you want to use the comparison-operator, you should use double quotes, not single. Single quotes are [B]only[/B] for one character. so change: [code] if (first == 'F' || first == 'f') { one = "Nominally"; four = "nominal"; } else if (first …

Member Avatar for j-green.10
0
77
Member Avatar for j-green.10
Member Avatar for Nick Evan
0
130
Member Avatar for iamthwee

The easiest way is to load it in a stringstream first, so you can use al your stream-functions. untested example: [code] std::stringstream a_stream; a_stream << std::setiosflags ( std::ios_base::right ) << std::setw ( 20 ) << "---------025125222" << std::endl; std::string the_string = a_stream.str(); std::cout << the_string; [/code]

Member Avatar for iamthwee
0
5K
Member Avatar for sangha6
Member Avatar for iamthwee
0
99
Member Avatar for Orion2k

[URL="http://www.google.com/cse?cx=013269018370076798483:gg7jrrhpsy4&cof=FORID:1&q=mingw+download&sa=Search"]click[/URL]

Member Avatar for Aranarth
0
83
Member Avatar for Nick Evan

The icon "new" in trending doesn't work. The icon also doesn't work when a thread is moved from 1 forum to another.

0
101
Member Avatar for Nick Evan

See this post for [URL="http://www.daniweb.com/forums/thread289107.html"]example[/URL] or: testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest

1
93
Member Avatar for spartan118

[B]>>I'm 100% sure all my variables are initialized (because of the fact I get no errors)[/B] There's a difference between declaring them and initializing them: declared, but not initialized will not give a compiler error, but will still cause problem [code] int a; cout << a; // <-- Uh oh, …

Member Avatar for rdrast
0
125
Member Avatar for VorSec

Or something a bit more easy: [code] #include <iostream> #include <string> #include <vector> #include <sstream> int main() { std::stringstream s_str("@This@Is@My@String@"); std::vector<std::string> words; std::string word = ""; while (std::getline(s_str, word, '@')) words.push_back(word); for (size_t s = 0; s != words.size(); ++s) std::cout << words.at(s) << '\n'; }[/code] [edit] cross-post with Iamtwee.. …

Member Avatar for iamthwee
0
1K
Member Avatar for yuvaraj.ragupat
Member Avatar for yuvaraj.ragupat
0
78
Member Avatar for moqbel

First of all: Why? This sounds like you're making somesort of malware/spyware and that's against the rules. [B]>>i don't know how do c++ know that the internet is on[/B] :?:

Member Avatar for Nick Evan
0
105
Member Avatar for Biker920

[B]>>They always appear right below the list of sticky "read me" threads (or at the very top if there are no sticky threads in the forum) and again at the very bottom of the listing[/B] I've never seen them until today. Later--

Member Avatar for diafol
0
250
Member Avatar for WASDted

[quote] [B]Where?[/B] Shhh... It's a secret! It will take place at a bar/restaurant near the Internet Week headquarters in Manhattan. [/quote] That's just a few thousand miles away! :D Anyway: Don't forget to post pics afterwards!

Member Avatar for happygeek
0
440
Member Avatar for ndeniche

You should have a look at [URL="http://openlayers.org/"]openlayers [/URL]

Member Avatar for peter_budo
0
231
Member Avatar for jephthah
Member Avatar for taz
Member Avatar for dnk77

[QUOTE=daviddoria;]This probably belongs in the 'C' forum as it is not C++. [/QUOTE] I agree: moved. @OP: I suggest you post the code that you're currently using. How are we supposed to give feedback on code we can't see? You wouldn't be tricking us in giving you free homework 'ey? …

Member Avatar for Nick Evan
0
75
Member Avatar for as005

[B]>> Sorry I think I posted it on the Wrong Forum, Please Delete this Post.[/B] It'll get moved in a short while. Be patient :)

Member Avatar for urtrivedi
0
207
Member Avatar for sanjkadam

[QUOTE=vb5prgrmr]I have reported your post and asked for you post to be put into a thread of its own.[/QUOTE] Done.

Member Avatar for vb5prgrmr
0
85
Member Avatar for debugger09

[B]>> is there any way to run two functions at the same time [/B] Google for multithreading. Boost has a [URL="http://www.boost.org/doc/libs/1_43_0/doc/html/thread.html"]thread class[/URL] build-in which is quite handy.

Member Avatar for debugger09
0
153
Member Avatar for codedhands

[QUOTE=codedhands;991613]21 views and no asnswer?[/QUOTE] Perhaps that's because you posted in the C++ forum, but your question has nothing to do with C++? [QUOTE=codedhands;991613] Please i need you to help me go through it,i need a basic explanation(examples will be nice) with less mathematical symbols. [/quote] Why do you think …

Member Avatar for binoykp
0
1K
Member Avatar for alexbadboys

Look at the post above your own: [QUOTE=williamhemswort;638430]Look how old the thread is.. Read the rules!![/QUOTE] This still applies. The thread didn't get any younger... So to get your thread answered - start a new thread - post your code in the new thread (using code-tags) - ask a clear …

Member Avatar for Alexandra_Os
0
4K
Member Avatar for joewinsock

To be honest, it's looks like you have no clue what you're doing. You've pasted some mangled Java-code in a cpp file and hope it works. Do you know the difference between Java and C++ ? Did you copy-paste this code from somewhere on the web?

Member Avatar for joewinsock
0
110
Member Avatar for AmericanRogue

[B]>>and learn to post in the right forum [/B] What's wrong with the game-dev forum if he's developing games?

Member Avatar for jwenting
0
2K
Member Avatar for xander85

[QUOTE=Dumbledor;1222727]4 students just copied this code and lost all their points for the assignment.[/QUOTE] Excellent. More teachers should use google to find ctrl-v-code.

Member Avatar for LoganJames
0
1K
Member Avatar for Kesarion

Did you look at iamthwee's code? He said: [I]>>After changing a few bits and bobs and [B]not calling the windMouse function[/B] I can get it so it doesn't crash[/I]

Member Avatar for iamthwee
0
407
Member Avatar for iamthwee

Thank you for the effort, but I always use the inbuild beautifier in VS. I like the idea of removing comments however.

Member Avatar for iamthwee
3
238
Member Avatar for Dani
Member Avatar for o.anhbayar

You don't. You build it with components, like motors, sensors, a frame. Since you obviously a newbie in this, I suggest you start [URL="http://www.robotroom.com/index.html"]here[/URL].

Member Avatar for nbaztec
-4
189
Member Avatar for darelet

From [URL="http://en.wikipedia.org/wiki/Gabor_filter"]wikipedia [/URL]perhaps? Next time you ask a question about a code, you should probably mention [I]what[/I] is wrong with it. - Does it compile? If not: post error messages - Does it produce expected output? If no: what is the output you were expecting, and what is your current …

Member Avatar for darelet
0
157
Member Avatar for BestJewSinceJC

>> My question is: what language(s) would be best for this If you're going to use a touchscreen for GUI, you require a rather 'advanced' embedded device. Most of the devices in this category will happily run Linux, WinCE or ... So you have a wide range of languages to …

Member Avatar for printrobin
0
87
Member Avatar for mrnutty

[QUOTE=GrimJack]You shoulda linked to it - I could not find it.[/QUOTE] [URL="http://www.daniweb.com/forums/thread282976.html"]link[/URL]

Member Avatar for jwenting
1
189
Member Avatar for Nick Evan
Member Avatar for Dani
0
102
Member Avatar for SherifSharkawy

Apparently Dani agreed with the OP: [URL="http://www.daniweb.com/forums/forum181.html"]Mobile Dev forum[/URL] Have fun.

Member Avatar for SherifSharkawy
0
321
Member Avatar for Stevishere

> at least Im certainly not seeing any increase in the programming forums. I don't really visit *all* the program-forums on an hourly basis, but I think C/C++ is indeed getting a bit more visitors actually. And now for the amazing part: I see a significant increase on 1-time-posters who …

Member Avatar for Nick Evan
0
365
Member Avatar for sparkle_jam

>> Btw, do I close my own thread, and if so, how? Nope, threads stay open at Daniweb. If your question got solved, you can mark it solved by clicking the link "Mark this Thread as Solved".

Member Avatar for sparkle_jam
0
129
Member Avatar for Ancient Dragon

It was the op's fault. He did this: [noparse] [TEX][ICODE][CODE] blahblah...horrible code. [/CODE][/ICODE][/TEX] [/noparse] So the TEX-engine tried to parse it, but failed as you can imagine :) btw: I've edited the thread you were referring to

Member Avatar for jephthah
0
304
Member Avatar for frankken2

Something like [URL="http://www.google.com/#hl=en&source=hp&q=voice+recognition+sdk&aq=f&aqi=g1g-m4&aql=&oq=&gs_rfai=&fp=f2c2514842c84d15"]this [/URL]perhaps?

Member Avatar for Nick Evan
0
106
Member Avatar for JameB
Member Avatar for Nick Evan
0
107
Member Avatar for vb5prgrmr
Member Avatar for jephthah

To be honest, I disagree. I looks a lot cleaner this way. Although I have to say that this will probably take a few weeks to get used to.. But overall it looks nice. I see that we no longer have reputation? And tags? [edit4] scratch that, I see how …

Member Avatar for Dani
8
2K
Member Avatar for Ancient Dragon

>> Last Post Don't start threads with these kinds of titles again please. I thought you were leaving because of all the purple ;)

Member Avatar for Ezzaral
0
134
Member Avatar for anuragcoder

As in normal colored text? No code-detecting or whatever? [code] #include <iostream> #include <windows.h> int main() { HANDLE hConsole = GetStdHandle (STD_OUTPUT_HANDLE); SetConsoleTextAttribute (hConsole, FOREGROUND_BLUE); std::cout << "Something like this perhaps?\n"; }[/code] (only for windows of-course)

Member Avatar for anuragcoder
-2
85
Member Avatar for Sodabread

[QUOTE=Sodabread;1204855] Is this a common occurrence around DW or am I just lucky? [/QUOTE] Spam I get about one each month. Users asking for help about once every two days.

Member Avatar for Ezzaral
0
192
Member Avatar for jephthah

[URL="http://en.wikipedia.org/wiki/Cow_tipping"]Cow tipping[/URL]. Which reminded me of this : [attach]14135[/attach] (moooohhh!) Which made me laugh :)

Member Avatar for vegaseat
4
189
Member Avatar for Nick Evan

In code-snippets avatars and "badges" aren't showing. Not a biggy, but thought I should let you know.

0
90
Member Avatar for harshchandra
Member Avatar for Rashakil Fol

Agreed. No-ones life is complete without having seen Avatar in 3D. Seriously, go now!

Member Avatar for Diamonddrake
1
323
Member Avatar for root

[QUOTE=Ene Uran;1216746]Well, better late than ever! Congratulations and good luck [B]root[/B][/QUOTE] Not to be a dick or anything, but you [I]do[/I] realize that you're replying to a thread that has been dead for [B]7[/B] (!) years right?

Member Avatar for vegaseat
0
95
Member Avatar for Venom Rush

I don't think that's possible (I'm sure it's not posssible in C++ so...). But why not use classses? Or what are you trying to do?

Member Avatar for Abolshiz
0
4K

The End.