199,114 Archived Topics
Remove Filter ![]() | |
I am getting an error of "syntax error befor "else" " when i enter this code into the compiler: [CODE]#include <stdio.h> #include <stdlib.h> int main () { float Balance, creditDebit, newBalance; printf("This is your checkbook balancing utility.\n"); printf("You will enter your current balance followed by\n"); printf("checkbook entries. Use + and … | |
Hi All on Daniweb.. I am starting a little project that needs hardware and software.. I decided to first start with the software and thats where Im having some trouble right now.. I can easily make a virtual keyboard that runs in vb.net but what i want it to do … | |
Hello I am making a function that reads a text file stores each line into a string array. My problem is I am getting errors with the function but I do not understand what I am doing wrong or how to fix it? Can you take a look & see … | |
Hello friends ... I m student. I m thinking to make my career with C++ and/or JAVA. I know little bit about java career and jobs available in market, but i don't know much about C++ career. Is there good opportunities for C++ programmer in market?? Can i get good … | |
help please ok here is my code [ICODE]void sleep() { energy 100; happy + 20; strength - 1; bladder 70; age + (hour * 8); };[/ICODE] ok? all the varibles are preprocesser defined, you know #define energy 100. i have 2 file in this project main.cpp and Brandon.cpp, the funciton … | |
hello, what I need to do is have the program break when the display goes off the screen and then continue. I'm exploring "break" options but it seems that break wants to use a paramater like value I need to pause after say 30 threads are displayed. Hope someone can … | |
I have used floating DIVs in the following layout. They jumps sometimes in Firefox. [url]http://www.web-ideaz.com/clients/cleanmiddleeast/index.php[/url] It is perfect in IE and Chrome. Any help? Thanks! | |
Hi guys need your helps. Now i doing the update part for my program. How to i get data from two table after i type the badge id and employee id then i will show other detail in the same form. So how to do that, need to use what … | |
i wrote a code which should accept only two values, but it seems to accept any values instead. can some show me where i went wrong. sorry about the long code, still a newbie at this. double hr::change_r(double sr) //implementation from class section { dr = sr; if(sr == 17) … | |
Hi I have problem on dragging label when the application show msgbox , it stop responding I do n't know what is problem in my code : [code=vb .net] dim l1 as label Dim serverindex, serverP As Integer Dim serverref As String Dim copiedFragment As String Private Sub Form3_Load(ByVal sender … | |
Hi again, My logic is not too good. I am supposed to get this function to be used twice for two different inputs calling the "strings" from within the function and returning the values to main (perhaps my mistake is attempting to call this program twice??? except that is what … | |
HI!!!!!!!!! How can I find the index of same digit which is at diffrent postion in any given number(number can be of any length).... Like we have any number, suppose, 982625 How can we find the index of two 2s in this number......... I have made a form in which … | |
Hi, I am trying to do my terms and conditions and I had trouble with this error it kept saying on line 68 I went to it and there was nothing I could see wrong, so I started all over again put it in a fresh and now it is … | |
I'm working on trying to approve photos that get posted. It works fine, but to keep files with the same name from overwriting each other I went with assigning them a random number. The problem is that even if a file is not uploaded it still writes a random number … | |
Hi all, I have tried this several ways. I need to get the user function to return userIn1 to main. I don't need to read anything from the call to the function, but if I leave out paraneters, it really does not work. My original issue was that the string … | |
Hi everyone! I'm totally new at C++ but quite good at Java. I know the syntax basics and that kind of stuff in C++ but when it comes to using .h files in my .ccp programs I'm totally on bare bottom. I use Dev-C++ 4.9.9.2 to compile my C++ programming. … | |
Trying to figure out how to get this program to work, its suppose to prompt the user for the data then list the users data but for some reason is not compiling properly. [CODE]#include <stdio.h> typedef struct { int data; char firstName[30]; char lastName[30]; char street[35]; char city[20]; char state[3]; … | |
What the diffrent bettween while looping, conter-controlled while loop, sentinel-controlled while loop,flag-controlled while loop, do while loop and For loop. when we use each one of them??? please, explean in detileas. thanx :) | |
I am using MS VC++ '08, ad have run into a problem that stumps me : [code] void printtext(char **lotsoftext,int m,int n) { for(int i=0;i<n;i++) for(int j=0;j<m;j++) print(lotsoftext[i][j]); } [/code] The error is as follows : cannot convert parameter 1 from 'char' to 'const char *' How do i correctly … | |
I made an IDictionary where each value is a user-defined class called employee, and the key is an integer (the employee's id number). Now, im using such a statement: [code=CPP] for each(employee^ de in globals::clientBase) { sr->WriteLine(de->employeeName); } [/code] but i get an error at runtime saying that they couldnt … | |
Hello, i have a problem constructing a regular expression to strip out puntuations from a document.Below is a simple example of my code [CODE=c++] # //headers here //... string a="kennedy .really-really. .cool"; string replace=" "; string newStr; boost::regex expression("[ ]+(\\.)|(\\.)[ ]+",boost::regex::icase); newStr=boost::regex_replace(a,expression,replace); cout << newStr << endl; //output kennedy really-really … | |
The google references were a bit varied and ambiguos and my textbook ironically doesn't cover templates ._. if I were to make [code=c++]template <typename typ> class stk { public: stk(); ~stk(); private: struct STK { typ dat; STK *lnk; }; *chn; int ctr; }; [/code] do I have to do … | |
hey guys, im very new to java so bare with me... i cant seem to bubble sort my arraylist... The data needs to be displayed unsorted in a jlist, then when user clicks process the list is sorted according to student id. If anyone could guide me through it would … | |
consider this: float a=3.145698,b; que: now how can I assign b=3.14 using 'a' instead of 3.145698. pls help me... thank you very much.... | |
Im learning as I go with a program I am writing. Im receiving and unexpected error and hoped someone could shine some light on as to why. I am making a list of objects but when I try to add to the list I receive (Invalid token '(' in class, … | |
OK so how can i have sscanf scan a string with an undetermined number of separators in it, then separate it out into separate strings inside a array of strings. So essentially, how can I modify this code to make it work? [CODE=c++] char * commands; //simple string as pointer … | |
Thank you for the tutorial last time on query strings :) It worked for me, this is my working query string: [code=php]<? $i=$_GET['vehicle']; switch ($i) { case Chrysler: include("chryslernew.php"); break; case Chevrolet: include("chevnew.php"); break; default: echo "include ("nopage.php")"; } ?>[/code] However, I'm trying to get my PHP URLs with query … | |
this is my program: there are 2 problems : 1. i am not allowed to use atoi 2. there is a compilation error this is my code : #include <stdio.h> #include <stdlib.h> typedef struct companyStatus{ double balance; FILE *invF, *errF;}companyStatus; void printWord(FILE* file); FILE* openFile(char* name); char* getNextWord(FILE *file); char … | |
Hello all. I have some problems with compilation while working with WinApi. Here is the code: [code=c++]// include the basic windows header file #include <windows.h> #include <windowsx.h> // the WindowProc function prototype LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); // the entry point for any Windows program … | |
hello, i have an assignment to create and print a calendar programme the prob is, we have to add in various additional features in order to get higher marks since i'm new to C, i need help and suggestions to improve on my code also, can anyone please show me … | |
Hi guys, I have started to learn c++ yesterday, and now i have little problem due to lack of knowledge. I developed this simple code: [CODE]#include <cstdlib> #include <iostream> #include <winbgim.h> using namespace std; int main() { int gdriver = 9, gmode = 2; initgraph(&gdriver, &gmode, ""); setbkcolor(WHITE); setcolor(BLACK); cleardevice(); … | |
Now i learnt basic windows programming long time ago and now use dev-cpp,i can run the simple Hello World program in that,but don't know how or where to implement cout and if statements type programming ? [ICODE]#include <windows.h> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); char szClassName[ ] = "WindowsApp"; … | |
I am doing a battleship game for my project. I am still trying to make a better algorithm.. This is what I have so far. Here is a code that will pick random coordinates for the computers ship, then draws the board and show where the ship is located... Assuming … | |
I made a Data report. I write code like: select *from table1 where date1 and date2 between dtpicker1.value and dtpicker2.value but the data not show in report. but when I write like: select *from table1 where date1 and date1 between dtpicker1.value and dtpicker2.value then data show. what problem? another thing … | |
I made a datareport. I select a date from dtpicker and the datareport show that date data. here I want the selected date (by dtpicker) will show in the report. like: 05-06-09 or from 01-06-09 to 05-06-09 any body help me please. | |
In a data environment I write code like: select ([exam fee]*[other fee]) as total from table1 then it work, but when I write like below it not work: select sum[exam fee] as total from table1 what problem with it? | |
I have a query that is returning customer data. I want to pass the $row['VisitorID'] Value on using the _GET _POST superglobal in two different links one that goes to a page to edit users profile and one that edits the users order preferences. I can get one or the … | |
Hello all. I have a small problem. I have a crewler, that gets into one website and extract some info from it, and writes the exctracted content to file. The only prob, that in 3~4hours of work, thise script uses 1 gig of ram. [code]for(my $increment = 1; $increment <= … | |
I'm supposed to write a program that stores data about a soccer player in a structure: Players name, players number, points scored by the player. The program should keep an array of 12 structures. Each element for a differnet player on the team. When the program runs it should ask … | |
Hello everyone. Can we ask about how we could mark the attribute of the entity as PF because the only thing we knew is the PK. Thanks in advance. Your reply will be a great help to us! ^_^ | |
Alright, so right now I have a GridView on my aspx page. It is set to run a stored procedure, get some data and display it. The parameter for the stored proc is set to come in through a query string. So the sqldatasource atuomatically looks for a query string … | |
Hi All's, I need to read value from my mdb database into currency format in textbox...can anyone guide me please.tq in advance | |
Hi, im working on my college library management system created by someone i dont know, the problem is the changes i"ve made has no effect on the output whenever i run this application, i think the person who have developed that application has locked the code and prevented it from … | |
i have a project in numerical analysis course..to estimate thae data (xi,yi)i= for i=0,1,2,..,10 using clambed cubic spline ..where xi=i/10 and f(x)=y=(e^x) (sinx) and this can be done using c language or C++ or even any other programming language.. please help me 2 do this ..it weights 10 marks of … | |
This is my recursive code that will print numbers according to fibbonacci series.. My problem is I want the program to stack (store the numbers) numbers before the printing (in order starting with 3-21) but it should still be a recursive program. Can you help me, which part I should … | |
[CODE] #include<stdio.h> int main() { int a[100], i=0; while(1) { a[i++]=5; printf("%d\n",i); } return 0; } [/CODE] on gcc this code doesn't give ny error. but after printing the value of i upto 100 , it restart writing value of i from 6 onward... my question is how value of … | |
I have a webpage created using ASP.net and C# 2005. I need to display some text as a marquee (scrolling text from right to left). The text will come from a table and I have already assigned it to a string variable. But I am unable to create the marquee … | |
Hello, me again. Sorry for asking such a silly question, but I need the consultation of you guys, experts in my sights. :D Well, basically, I've been fiddling around a lot with C++, looking at various tutorials at the internet, making simple programs such as Calculators, password-protected stuff which spit … | |
I prepared one software. Now i want that nobody can install this software without a activation code. How can I generate such an activation key. | |
i use netbean 6.5 i can't hide the Jlabel,i have use .setVisibel(false) here's the problem i want to hide and show 2 or more label with 1 button,label and button in one parent (panel),for the first label is show but if i click once te button,label is hide,and twice label … |
The End.