43,549 Solved Topics
Remove Filter ![]() | |
This is probably just due to my quotes, but I'm trying to get the following script up and running: This is my command line: find ./ -type f | xargs grep "#include <some.h>" | awk -F: '{print $1}' | xargs grep "#include <another.h>" I'm trying to find a nested header … Software Development shell-scripting | |
I am using python 2.3.5 and I just haven't seemed to understand why I get an error that says "SyntaxError: unqualified exec is not allowed in function 'parse' it contains a nested function with free variables". I am trying to develop a scripting language for my operating system that is … Software Development operating-system python | |
is there any way that one can place code in C# in a procedure or a function? I have code logic which is going to be executed many times over and instead of recoding it twenty times over I want to put them in functions and procedures so that I … Software Development | |
I just started learning Python about 2 days ago, and I threw this program together, just to get the hang of it. The program just creates a file named "PythonTest.txt" in the same directory as the .py file. The user can then enter lines that are written to the .txt … Software Development python | |
Hi, This is my first post so I hope I explain myself well. I just started learning how to program about three weeks ago. I chose python becuase SPSS now can interface with Python. So this may seem like an obvious question. What I am trying to do is set … Software Development python | |
I am using the system.diagnostics.process command to run a program. the program receives a number of parameters. can someone please tell me if the process command of c# can receive more than one argument? and how do you specify them? when one runs this command from the command-line you seperate … Software Development | |
I am trying to write this loop in a simple convert process, but I get all sorts of crazy errors when I try using the "not equals" operators. here is my code: int main() { int i = 5; std::string s; do { cout<<" Enter a string: "; cin>>s; cout<<endl; … Software Development c++ | |
Is there a way to change boolean into integers? Like... making every "TRUE" = 1 and "FALSE" = 0 If there is a way, how will you do it? I tried using this 'cast' thing, but it's confusing :'( - - - - - I'm suppose to make a table, … Software Development java | |
I was experimenting with a direct method of dereferencing an iterator. It works OK with numbers, cout gets confused (??) when the derefenced pointer is a string? The code was supposed to stuff a vector, then read it out . I hacked up that original to do some troubleshooting and … Software Development c++ | |
Can somebody help me understand what does this function do? And also if there are any logical or syntactic errors in the function. I was told that there are 2 bugs in the code. I can only think of 1 which is below: 1. In the first while loop in … Software Development c++ | |
What is a two-dimensional char array with 3 rows and 3 columns. Can give me an example of a program. Thanks Software Development c++ | |
Hi to all , I wished if any one of you could throw light on [B]mechanism of insertion sorting in C++[/B]. I know what is bubble sorting but I had confusion regarding what is insertion sorting? In school my professor had mentioned about it, but I do not have any … Software Development c++ | |
I want to convert a vector into a string array. I have put in my code: criteria = (String []) tokenVector.toArray(); I get a ClassCastExceptionError (I can understand why since Vector holds objects which are 'bigger' than strings) - and yet I cannot understand how to resolve it - any … Software Development java | |
I am a beginner in computers, i would like to be assisted in writing a simple program that inputs a fraction in the form of a/b and c/d and culculates the sum and returns the answer in the simlest form as in p/q. Notes do not allow zero as the … Software Development c | |
I am currently reading about bit sizes or something.. is knowing these bit sizes important? Because I don't really get this, and if it's not important, I won't have to keep rereading this thing. Type Width in Bits byte 8 [B]<-- is knowing this important?[/B] short 16 int 32 long … Software Development java | |
How to pass char* as refrence in a funstion? Software Development c++ | |
Hi Everyone:* I am working on Database project using DAO. Now I got a problem in counting all the data from one Field:-/ . Please help Me in this problem. :confused: And Tell Me how can I get the total of any field by using SQL STATEMENT? Thanks In Advance Software Development sql visual-basic | |
[CODE=CPP]#include <iostream> #include <cstdlib> #include <cmath> #include <ctime> using namespace std; int main() { srand(time(0)); int randNum = rand() % 100 + 1; // Generates random number between 1 and 100 int num = 0; int name;//Name of player cout << "Welcome to the Random Number Guessing Game!!"<<endl; // Name … Software Development c++ | |
I'm fairly new to C++, and I can't seem to find any sources on opening applications or files straight from the program. I looked up the system() function on this site, but all that it did for me was verify the file's path and post it's size. I need the … Software Development c++ | |
:) guys im a firt timer. im making a program which reads floating point numbers from cin and compute 2 averages: the average of the positive and negative nos. im wonderin wats wrong in my program>> #include<iostream.h> #include<conio.h> int size,i,sumpos,sumneg; int num; main() { clrscr(); cout<<"input size\n"; cin>> size; for … Software Development c++ | |
Hi there, I'm completely new to C++ programming and need to find out/verify something in the code below... [code]// my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/code] From a web site I (believe I) understand the following … | |
Write a program that simulates a lottery. The program should have an array of five integers named lottery, and should generate a random number in the range of 0 through 9 for each element in the array. The user should enter five digits which should be stored in an integer … Software Development c++ | |
Hello, I am new at this java thing... like really, 1 day new. I have this book called Java 2: A Beginner's Guide (Second Edition). I got stuck on the second step which tells me to.. use javac to compile Example.java.. I read old posts that were posted here through … Software Development java | |
[code] Private Function atoz() As String ' Lower Case Chr(97 + Rnd() * 862150000 Mod 26) ' produces a-z End Function Private Function ZerotoNine() As String ' Numbers Chr(48 + Rnd() * 862150000 Mod 10) 'produces 0-9 End Function[/code] Hi, Quick question(this is not homework by the way)the above code … Software Development visual-basic | |
hi, i made a program it works fine on my computer but if I try to run it on other computer it has an error "Run Time Error 429 Active-x Can't Create Object", OS is XP, already installed the runtime files, and someone advice me to install the latest IE … Software Development os-x visual-basic | |
[I]hi , my problem with comm port in device manager,when i using serial rs232 to send data to port first time when i switch on the pc [/I] [I]it execute the program ,But when i use USB to Serial Adapter cable to send data it work's fine but again i … Software Development visual-basic | |
Where I work, we have mutiple products which create installation packages that are kept in the same directory that I will call the mainBuildDir. An installation package is a directory whose name is the product name followed by the date. Ex: ProdA_2007-06-22 The contents are multiple files and folders, perhaps … | |
I was playing with a bunch of new things today and came up with this. Did I do anything wrong? [code=c++] /* binary class manipulator Print values or strings as binary by Kimberly Hamrick */ #include <iostream> // for C++ I/O #include <string> // for C++ strings using namespace std; … Software Development c++ | |
Suggest any best book for the ASP.NET with VB 2005 to develop myself in developing the projects | |
I have two static libraries: [INDENT][COLOR="Green"]/usr/X11R6/lib/libX11.a[/COLOR] - Standard library, ~ 1.5MB [COLOR="Green"]./libxbgi.a[/COLOR] - Created by me, ~60KB[/INDENT] Now I use the following commands to compile a program, [I]test.c[/I]: [inlinecode]$gcc -o test test.c -lm -L /usr/X11R6/lib -lX11 -L . -lxbgi[/inlinecode] This works fine, the executable [I]test[/I] is 33KB, which is as … Software Development c | |
if somebody can explain it in english Thanks Il sorgente che segue va copiato e salvato in un file con estensione .py ad esempio IO_SMS.py #Importo i moduli import MDM import GPIO import MOD #VARIABILI GSMNUMBER="xxxxxxxxxx" #Numero del destinatario dell'SMS SMSMESSAGE="Il modem Telit con python ti scrive ;)" #Messaggio dell'SMS … Software Development python | |
I wrote strlen() for practice but it's really slow. Even if I copy the code from my compiler and run it, it's still slow. This is my test. [code=c++] /* strlen_comp Comparing my and Visual C++'s strlen by Kimberly Hamrick */ #include <assert.h> // for result tests #include <string.h> // … | |
I try to make a simple .vb like this create three textboxes named txtA, txtB and txtAplusB then if you click a button named cmdPlus then the text in txtAplusB will include the texts in txtA and txtB Here is the code for form Private Sub cmdPlus_Click() Call Calculate End … Software Development visual-basic | |
I am getting compile error C:\Dev-Cpp\Myproj\array.cpp cannot convert 'int (*)[3]' to 'int*' for argument '1' to 'int GetValues(int*)' at the lines indicated in Red. [code=C] #include <cstdlib> #include <iostream> #define MAX 3 #define MIN 0 using namespace std; //int a[MAX][MAX]; int i,j; int Display(int *a) { int n=2; for (i=MIN; … Software Development c++ | |
![]() | I have created a few projects in VB.NET using Visual Studio 2005. I am wondering how to package the applications for deployment. I would like to be able to upload applications to a server or e-mail the apps. An .exe file with an icon would be great. How do I … Software Development vb.net visual-studio |
I delcared an enum type in my program: typedef enum {freshman, sophmore, junior, senior }level; then i declared a variable level x=freshman; how can i increase the enum type to go from freshman to sophemore etc. Software Development c++ | |
I'm having trouble writing a Queue class using Book structures i keep getting this error where tried to assign the pointer front and rear to the next or previous link in the queue here is my entire Queue class i have highlighted the parts that gave me the errors <AD: … | |
I'm quite new to C++ and programming and general and I have a question about arrays. I realize this has been asked before but it has never been sufficiently explained, nor have I ever even been able to use the code given. I work with the standard C++ library and … Software Development c++ | |
along with that error i also get these for that same line error C2143: syntax error : missing ';' before '{' error C2447: '{' : missing function header (old-style formal list?) here is that line of my code [code=cpp]class Queue{ //Number 2 protected: struct Book *front; struct Book *rear; public: … | |
hi, im creating a win32 dll using VS.NET 2005. actually im creating a COM component so i need to implement DllRegisterServer. The problem is that when i call regsvr32 on the dll, i get the error 'the dll was loaded but the dllRegisterServer entry point was not found'. Now, the … Software Development c++ | |
I have downloaded dev c++ IDE for C++ programmming and do have windows MediaCentre OS. Now to go for some widgets like buttons or textboxes in my program do I need to install gtk+ how would openGl with GLUT help me in this regard ? Do I have to download … | |
Hi, I'm basically trying to create captions that will go under an image in my project.. the problem is that if the caption line is too long, it will get chopped off... so I'm trying to write a function that will re-chop a string with endl's according to the width … Software Development c++ | |
[COLOR=#0000ff]Dim[/COLOR][COLOR=#000000] str [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]String[/COLOR][COLOR=#000000] = "select * from table1"[/COLOR] [COLOR=#008000]'try to write "select distinct * from table1" [/COLOR][COLOR=#0000ff]Dim[/COLOR] con [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = ConfigurationSettings.AppSettings("preeconn") [COLOR=#0000ff]Dim[/COLOR] cmd [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] SqlCommand(str, [COLOR=#0000ff]New[/COLOR] SqlConnection(con)) cmd.Connection.Open() [COLOR=#0000ff]Dim[/COLOR] da [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] SqlDataAdapter(str, con) [COLOR=#0000ff]Dim[/COLOR] ds [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] DataSet da.Fill(ds, "table1") [COLOR=#0000ff]Dim[/COLOR] maxrws [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Integer [/COLOR][COLOR=#0000ff]Dim[/COLOR] i … | |
hello all, i have to prepare a report which will display data from a specific date upto the specific date, both will be defined by the user at run time. the report is connected with the database and front end is vb. I am using crystal report for this. i … Software Development display visual-basic | |
Hi All Gurus, I am new to scripting.. and want to know what is the meaning of each non zero exit codes from 1-255. Please help. Thanks in advance Sandy_b76 Software Development shell-scripting | |
Hi, all How can I make a text box such that it accepts numbers only? Does anybody know how can I achieve that? It would be helpful if somebody post some example programs or some links to such websites where I can get some resources regarding this thread. Thanks to … Software Development | |
Hello everyone. I'm working on the infamous TicTacToe program. I have created a class(TTT) with it's private and public members. The program is human v. computer. In the hmove function I ask for the coordinates (0,0;1,2; etc.). I'm not sure how to pass the user selection to the printb function … Software Development c++ | |
Hello, I have a server and client file. In Client I have [CODE]WSADATA WsaData; SOCKET Socket; [/CODE] In server I have [CODE]WSADATA xxx; SOCKET yyy; [/CODE] This is same in both files: [CODE]sock_addr.sin_port = htons(1234);[/CODE] Will this connection be established? Software Development c++ client-server | |
Hi, I have the basic knowledge in C++ and C. I am now looking for workign on some game programming. Well, in C++ how can I get those buttons, text boxes frames etc as we have in Java or VB. would you suggest me some books or links also, that … Software Development c++ | |
Hi, DaniWeb Subscribers! I need to learn Cocoa with XTools quickly. I am reading Apple's Obj-C Prog Language manual and another book on Cocoa programming. I also looked at the examples provided by the ADC. I am still overwhelmed. I'd like to get the most simple example of the following … Software Development apple c++ open-source |
The End.